WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
34545
[WinCairo] Properly Handle Margin Settings
https://bugs.webkit.org/show_bug.cgi?id=34545
Summary
[WinCairo] Properly Handle Margin Settings
Brent Fulgham
Reported
2010-02-03 16:13:56 PST
The existing printing implementation for the WinCairo port does not properly consider the margin settings when calculating the scaling factor to use when drawing to the print context. Consequently, a page printed using the WinCairo port is not the same size as that produced by Safari, and does not properly draw within the specified margins. Fix is to compute the scaling factor after incorporating the margin regions. This allows the WinCairo print output to closely match the Safari output.
Attachments
Patch to correct handling of margins when printing.
(4.85 KB, patch)
2010-02-03 16:25 PST
,
Brent Fulgham
no flags
Details
Formatted Diff
Diff
Revised patch, remove two extra spaces in function calls.
(4.84 KB, patch)
2010-02-03 16:30 PST
,
Brent Fulgham
aroben
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2010-02-03 16:25:33 PST
Created
attachment 48077
[details]
Patch to correct handling of margins when printing.
WebKit Review Bot
Comment 2
2010-02-03 16:28:11 PST
Attachment 48077
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebKit/win/WebFrame.cpp:2081: Extra space before ( in function call [whitespace/parens] [4] WebKit/win/WebFrame.cpp:2082: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 3
2010-02-03 16:30:42 PST
Created
attachment 48078
[details]
Revised patch, remove two extra spaces in function calls.
Adam Roben (:aroben)
Comment 4
2010-02-04 09:07:07 PST
Comment on
attachment 48078
[details]
Revised patch, remove two extra spaces in function calls.
> + cairoMarginRect.scale(1.0f / scale);
You can just say "1 / scale" here. The 1 will get promoted to a float automatically. r=me
Brent Fulgham
Comment 5
2010-02-04 11:31:12 PST
Landed in
http://trac.webkit.org/changeset/54356
.
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