RESOLVED FIXED 72537
Add API for paginated display
https://bugs.webkit.org/show_bug.cgi?id=72537
Summary Add API for paginated display
mitz
Reported 2011-11-16 13:09:49 PST
Add API for paginated display
Attachments
Add WebKit1 Mac SPI, WebKit2 Mac SPI and WebKit2 C SPI (33.29 KB, patch)
2011-11-16 13:24 PST, mitz
andersca: review+
mitz
Comment 1 2011-11-16 13:10:36 PST
mitz
Comment 2 2011-11-16 13:24:25 PST
Created attachment 115434 [details] Add WebKit1 Mac SPI, WebKit2 Mac SPI and WebKit2 C SPI
WebKit Review Bot
Comment 3 2011-11-16 13:28:18 PST
Attachment 115434 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebKit2/UIProcess/API/mac/WKBrowsingContextControllerPrivate.h:35: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 1 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 4 2011-11-16 13:30:24 PST
Comment on attachment 115434 [details] Add WebKit1 Mac SPI, WebKit2 Mac SPI and WebKit2 C SPI View in context: https://bugs.webkit.org/attachment.cgi?id=115434&action=review > Source/WebKit2/UIProcess/API/C/WKPagePrivate.h:64 > +WK_EXPORT void WKPageSetGapBetweenPages(WKPageRef page, double gap); What units is this gap in? Pixels?
mitz
Comment 5 2011-11-16 13:35:42 PST
(In reply to comment #4) > (From update of attachment 115434 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=115434&action=review > > > Source/WebKit2/UIProcess/API/C/WKPagePrivate.h:64 > > +WK_EXPORT void WKPageSetGapBetweenPages(WKPageRef page, double gap); > > What units is this gap in? Pixels? They are document view units (i.e. they are scaled by the page scale factor).
Anders Carlsson
Comment 6 2011-11-16 15:56:22 PST
Comment on attachment 115434 [details] Add WebKit1 Mac SPI, WebKit2 Mac SPI and WebKit2 C SPI View in context: https://bugs.webkit.org/attachment.cgi?id=115434&action=review > Source/WebKit2/Shared/WebPageCreationParameters.cpp:49 > + encoder->encode(paginationMode); You can just use encodeEnum here. > Source/WebKit2/Shared/WebPageCreationParameters.cpp:96 > + if (!decoder->decode(parameters.paginationMode)) > + return false; and decodeEnum here.
mitz
Comment 7 2011-11-16 17:20:30 PST
Note You need to log in before you can comment on or make changes to this bug.