Summary: | Make it possible for a WebKit2 client to print headers and footers | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||
Component: | Printing | Assignee: | Alexey Proskuryakov <ap> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | andersca, webkit-ews | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Alexey Proskuryakov
2011-01-19 13:36:40 PST
Created attachment 79476 [details]
proposed patch
Attachment 79476 [details] did not build on qt: Build output: http://queues.webkit.org/results/7557218 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. Committed <http://trac.webkit.org/changeset/76167>. |