WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
101772
[chromium] Remove WebScreenInfo.{horizontal,vertical}DPI
https://bugs.webkit.org/show_bug.cgi?id=101772
Summary
[chromium] Remove WebScreenInfo.{horizontal,vertical}DPI
Sami Kyöstilä
Reported
2012-11-09 09:20:08 PST
[chromium] Remove WebScreenInfo.{horizontal,vertical}DPI
Attachments
Patch
(5.90 KB, patch)
2012-11-09 09:22 PST
,
Sami Kyöstilä
no flags
Details
Formatted Diff
Diff
Patch
(6.02 KB, patch)
2012-11-14 16:56 PST
,
Sami Kyöstilä
no flags
Details
Formatted Diff
Diff
Patch
(6.73 KB, patch)
2012-11-21 10:57 PST
,
Sami Kyöstilä
no flags
Details
Formatted Diff
Diff
Patch
(6.73 KB, patch)
2012-11-22 03:43 PST
,
Sami Kyöstilä
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Sami Kyöstilä
Comment 1
2012-11-09 09:22:58 PST
Created
attachment 173326
[details]
Patch
WebKit Review Bot
Comment 2
2012-11-09 09:28:51 PST
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
WebKit Review Bot
Comment 3
2012-11-09 11:50:28 PST
Comment on
attachment 173326
[details]
Patch
Attachment 173326
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14771765
Peter Beverloo (cr-android ews)
Comment 4
2012-11-09 16:20:58 PST
Comment on
attachment 173326
[details]
Patch
Attachment 173326
[details]
did not pass cr-android-ews (chromium-android): Output:
http://queues.webkit.org/results/14777615
John Mellor
Comment 5
2012-11-14 09:54:39 PST
Comment on
attachment 173326
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=173326&action=review
Nice cleanup, looks good. Slightly unsure what the status of Win 8 port is w.r.t. deviceScaleFactor.
> Source/WebKit/chromium/src/win/WebScreenInfoFactory.cpp:-68 > - results.horizontalDPI = GetDeviceCaps(hdc, LOGPIXELSX);
I notice that this code doesn't set deviceScaleFactor. Surely some Windows 8 devices have non-zero deviceScaleFactor? Ditto for X11 below. Alternatively if you're deliberately hardcoding the default value of 1, a comment to clarify this might be good.
Sami Kyöstilä
Comment 6
2012-11-14 16:47:42 PST
(In reply to
comment #5
)
> Nice cleanup, looks good. Slightly unsure what the status of Win 8 port is w.r.t. deviceScaleFactor.
Your guess is as good as mine. Right now I think neither X11 nor Windows enables the viewport tag, but obviously that might change going forward.
> > > Source/WebKit/chromium/src/win/WebScreenInfoFactory.cpp:-68 > > - results.horizontalDPI = GetDeviceCaps(hdc, LOGPIXELSX); > > I notice that this code doesn't set deviceScaleFactor. Surely some Windows 8 devices have non-zero deviceScaleFactor? Ditto for X11 below. Alternatively if you're deliberately hardcoding the default value of 1, a comment to clarify this might be good.
That's right, both Windows and X11 default to a device scale factor of 1 and I didn't want to change that. I have no idea how Windows 8 fits in here. I'll add a comment to both files.
Sami Kyöstilä
Comment 7
2012-11-14 16:56:17 PST
Created
attachment 174289
[details]
Patch Added FIXME for win/x11.
WebKit Review Bot
Comment 8
2012-11-21 09:31:06 PST
Comment on
attachment 174289
[details]
Patch
Attachment 174289
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14943115
Sami Kyöstilä
Comment 9
2012-11-21 10:57:26 PST
Created
attachment 175483
[details]
Patch Rebased because a new test using horizontalDPI (WebFrameTest.ScaleFactorShouldNotOscillate) got added. Adam, are you still happy with this?
WebKit Review Bot
Comment 10
2012-11-21 12:56:29 PST
Comment on
attachment 175483
[details]
Patch
Attachment 175483
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14960062
New failing tests: inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html
Sami Kyöstilä
Comment 11
2012-11-22 03:43:23 PST
Created
attachment 175641
[details]
Patch Retry EWS.
WebKit Review Bot
Comment 12
2012-11-23 03:16:43 PST
Comment on
attachment 175641
[details]
Patch Clearing flags on attachment: 175641 Committed
r135580
: <
http://trac.webkit.org/changeset/135580
>
WebKit Review Bot
Comment 13
2012-11-23 03:16:47 PST
All reviewed patches have been landed. Closing bug.
Yury Semikhatsky
Comment 14
2012-11-23 04:50:22 PST
The change broke compilation on Chromium Win:
http://build.webkit.org/builders/Chromium%20Win%20Release/builds/51008/steps/compile-webkit/logs/stdio
I landed a quick fix
http://trac.webkit.org/changeset/135593
, please check if we can do a better job there.
Sami Kyöstilä
Comment 15
2012-11-23 05:18:55 PST
Sorry about the breakage and thank you for the quick fix. Your change looks fine by me.
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