Bug 101772 - [chromium] Remove WebScreenInfo.{horizontal,vertical}DPI
Summary: [chromium] Remove WebScreenInfo.{horizontal,vertical}DPI
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sami Kyöstilä
URL:
Keywords:
Depends on: 101769
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-09 09:20 PST by Sami Kyöstilä
Modified: 2012-11-23 05:18 PST (History)
8 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Sami Kyöstilä 2012-11-09 09:20:08 PST
[chromium] Remove WebScreenInfo.{horizontal,vertical}DPI
Comment 1 Sami Kyöstilä 2012-11-09 09:22:58 PST
Created attachment 173326 [details]
Patch
Comment 2 WebKit Review Bot 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.
Comment 3 WebKit Review Bot 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
Comment 4 Peter Beverloo (cr-android ews) 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
Comment 5 John Mellor 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.
Comment 6 Sami Kyöstilä 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.
Comment 7 Sami Kyöstilä 2012-11-14 16:56:17 PST
Created attachment 174289 [details]
Patch

Added FIXME for win/x11.
Comment 8 WebKit Review Bot 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
Comment 9 Sami Kyöstilä 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?
Comment 10 WebKit Review Bot 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
Comment 11 Sami Kyöstilä 2012-11-22 03:43:23 PST
Created attachment 175641 [details]
Patch

Retry EWS.
Comment 12 WebKit Review Bot 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>
Comment 13 WebKit Review Bot 2012-11-23 03:16:47 PST
All reviewed patches have been landed.  Closing bug.
Comment 14 Yury Semikhatsky 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.
Comment 15 Sami Kyöstilä 2012-11-23 05:18:55 PST
Sorry about the breakage and thank you for the quick fix. Your change looks fine by me.