Properly handle margin settings in WinCairo.
https://bugs.webkit.org/show_bug.cgi?id=34545 Reviewed by Adam Roben. * WebFrame.cpp: (scaleFactor): Require the margin information as an input parameter, and use them when computing the scaling factor. (WebFrame::drawHeader): Pass margin size to scaleFactor. (WebFrame::drawFooter): Pass margin size to scaleFactor. (WebFrame::spoolPage): 1. Pass margin size to scaleFactor. 2. Recognize that the return value of printerMarginRect is already in device units, and therefore scale it so that the Cairo drawing is correct. 3. Remove scaling call for margins in GDI code, as it is already in scaled units. git-svn-id: svn://svn.chromium.org/blink/trunk@54356 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment