RESOLVED FIXED 196680
Add @page margin support
https://bugs.webkit.org/show_bug.cgi?id=196680
Summary Add @page margin support
zalan
Reported 2019-04-06 13:43:10 PDT
@page { margin: 5.0mm; }
Attachments
Patch (19.21 KB, patch)
2019-04-06 13:48 PDT, zalan
no flags
Patch (21.54 KB, patch)
2019-04-06 16:40 PDT, zalan
no flags
Patch (66.21 KB, patch)
2019-04-11 13:44 PDT, zalan
no flags
Patch (59.93 KB, patch)
2019-04-11 14:51 PDT, zalan
no flags
Patch (59.99 KB, patch)
2019-04-11 14:57 PDT, zalan
no flags
zalan
Comment 1 2019-04-06 13:48:53 PDT
zalan
Comment 2 2019-04-06 16:40:56 PDT
zalan
Comment 3 2019-04-11 13:20:37 PDT
zalan
Comment 4 2019-04-11 13:44:40 PDT
Tim Horton
Comment 5 2019-04-11 13:55:08 PDT
Comment on attachment 367238 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=367238&action=review > Source/WebKit/Shared/PrintInfo.h:60 > + // These values are in 'point' unit (and not css pixel). CSS > Source/WebKit/Shared/WebPreferences.yaml:1639 > + webcoreBinding: RuntimeEnabledFeatures Why is this not just a Setting! > Source/WebKit/UIProcess/API/C/WKPreferences.cpp:2131 > + > +void WKPreferencesSetPageAtRuleSupportEnabled(WKPreferencesRef preferencesRef, bool flag) > +{ > + toImpl(preferencesRef)->setPageAtRuleSupportEnabled(flag); > +} > + > +bool WKPreferencesGetPageAtRuleSupportEnabled(WKPreferencesRef preferencesRef) > +{ > + return toImpl(preferencesRef)->pageAtRuleSupportEnabled(); > +} No need for new C API > Source/WebKit/UIProcess/mac/WKPrintingView.mm:329 > + [printInfo setBottomMargin: computedPageMargin.bottom()]; No spaces after colons! > Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h:271 > +#define WebKitPageAtRuleSupportEnabledPreferenceKey @"WebKitPageAtRuleSupportEnabled" No need for WebKitLegacy API
zalan
Comment 6 2019-04-11 14:51:42 PDT
zalan
Comment 7 2019-04-11 14:57:07 PDT
WebKit Commit Bot
Comment 8 2019-04-11 16:33:48 PDT
Comment on attachment 367245 [details] Patch Clearing flags on attachment: 367245 Committed r244202: <https://trac.webkit.org/changeset/244202>
WebKit Commit Bot
Comment 9 2019-04-11 16:33:49 PDT
All reviewed patches have been landed. Closing bug.
Ryan Haddad
Comment 10 2019-04-11 17:14:46 PDT
This change broke Windows builds: c:\cygwin\home\buildbot\worker\win10-release\build\source\webcore\platform\rectedges.h(39): error C2665: 'std::forward': none of the 2 overloads could convert all the argument types https://build.webkit.org/builders/Apple%20Win%2010%20Release%20%28Build%29/builds/3604
zalan
Comment 11 2019-04-11 18:43:30 PDT
(In reply to Ryan Haddad from comment #10) > This change broke Windows builds: > > c:\cygwin\home\buildbot\worker\win10- > release\build\source\webcore\platform\rectedges.h(39): error C2665: > 'std::forward': none of the 2 overloads could convert all the argument types > > https://build.webkit.org/builders/Apple%20Win%2010%20Release%20%28Build%29/ > builds/3604 Fixing it.
zalan
Comment 12 2019-04-11 18:56:17 PDT
Note You need to log in before you can comment on or make changes to this bug.