Summary: | [GTK] Allow printing multiple copies in WebKit2 for printers that don't support it | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | gustavo | ||||
Priority: | P2 | Keywords: | Gtk | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Bug Depends on: | 78799 | ||||||
Bug Blocks: | 75544, 78823 | ||||||
Attachments: |
|
Description
Carlos Garcia Campos
2012-02-16 05:57:37 PST
Created attachment 127367 [details]
Patch
It supports collated and uncollated copies.
Comment on attachment 127367 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127367&action=review > Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:329 > + collated = 0; This puzzled me. Why do you set collated to 0 in this case? Is it so that if there are uncollated copies left the count will start from scratch? (In reply to comment #2) > (From update of attachment 127367 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=127367&action=review > > > Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:329 > > + collated = 0; > > This puzzled me. Why do you set collated to 0 in this case? Is it so that if there are uncollated copies left the count will start from scratch? No, there can't be collated and uncollated at the same time, they are mutually exclusive. When collatedCopiesLeft() is 0, it's because collated == collatedCopies - 1, so we reset it to 0, so that next page is collated again. Comment on attachment 127367 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127367&action=review >>> Source/WebKit2/WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:329 >>> + collated = 0; >> >> This puzzled me. Why do you set collated to 0 in this case? Is it so that if there are uncollated copies left the count will start from scratch? > > No, there can't be collated and uncollated at the same time, they are mutually exclusive. When collatedCopiesLeft() is 0, it's because collated == collatedCopies - 1, so we reset it to 0, so that next page is collated again. OK, makes sense Committed r108089: <http://trac.webkit.org/changeset/108089> |