WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52739
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
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
Attachment 79476
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/7557218
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
Committed <
http://trac.webkit.org/changeset/76167
>.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug