RESOLVED FIXED52739
Make it possible for a WebKit2 client to print headers and footers
https://bugs.webkit.org/show_bug.cgi?id=52739
Summary Make it possible for a WebKit2 client to print headers and footers
Alexey Proskuryakov
Reported 2011-01-19 13:36:40 PST
Patch forthcoming
Attachments
proposed patch (15.52 KB, patch)
2011-01-19 13:47 PST, Alexey Proskuryakov
darin: review+
Alexey Proskuryakov
Comment 1 2011-01-19 13:47:16 PST
Created attachment 79476 [details] proposed patch
Early Warning System Bot
Comment 2 2011-01-19 14:07:21 PST
Darin Adler
Comment 3 2011-01-19 14:17:59 PST
Comment on attachment 79476 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=79476&action=review Note that this broke the Qt build. Please land a version that does not break it. > Source/WebKit2/UIProcess/API/mac/WKView.mm:1480 > + NSRect footerRect = NSMakeRect(headerFooterLeft, [printInfo bottomMargin] / scale - _data->_page->footerHeight(frame), > + headerFooterWidth, _data->_page->footerHeight(frame)); > + NSRect headerRect = NSMakeRect(headerFooterLeft, (paperSize.height - [printInfo topMargin]) / scale, > + headerFooterWidth, _data->_page->headerHeight(frame)); We normally don’t line things up like this, and just indent one tab stop. It’s better for later renaming, for one thing.
Alexey Proskuryakov
Comment 4 2011-01-19 14:46:17 PST
Note You need to log in before you can comment on or make changes to this bug.