Bug 101613 - Introduce WebScreenInfo.deviceScaleFactor
Summary: Introduce WebScreenInfo.deviceScaleFactor
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:
Blocks:
 
Reported: 2012-11-08 08:53 PST by Sami Kyöstilä
Modified: 2012-11-08 12:04 PST (History)
6 users (show)

See Also:


Attachments
Patch (4.17 KB, patch)
2012-11-08 08:57 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-08 08:53:09 PST
Introduce WebScreenInfo.deviceScaleFactor
Comment 1 Sami Kyöstilä 2012-11-08 08:57:29 PST
Created attachment 173054 [details]
Patch
Comment 2 WebKit Review Bot 2012-11-08 09:00:13 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 Sami Kyöstilä 2012-11-08 09:00:53 PST
Please see http://codereview.chromium.org/11348033/#msg23 for the rationale.
Comment 4 Adam Barth 2012-11-08 10:35:33 PST
> 3. [WebKit] Remove WebCore::screen{Horizontal,Vertical}DPI() and use
WebScreenInfo::deviceScaleFactor in
ChromeClientImpl::dispatchViewportPropertiesDidChange.

^^^ That's very exciting.
Comment 5 Adam Barth 2012-11-08 10:36:41 PST
Comment on attachment 173054 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=173054&action=review

> Source/WebKit/chromium/src/mac/WebScreenInfoFactory.mm:98
>      float deviceDPI = 160 * deviceScaleFactor(view);

Should we avoid calling deviceScaleFactor twice?
Comment 6 Sami Kyöstilä 2012-11-08 10:42:52 PST
(In reply to comment #5)
> Should we avoid calling deviceScaleFactor twice?

I was going to do that in step 5 when horizontal/verticalDPI go away for good.
Comment 7 WebKit Review Bot 2012-11-08 11:03:46 PST
Comment on attachment 173054 [details]
Patch

Rejecting attachment 173054 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
omium/TestExpectations
Failed to merge in the changes.
Patch failed at 0001 Multiple Layout Tests (e.g. fast/repaint/japanese-rl-selection-clear.html) is failing after r133840.

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 154.

Full output: http://queues.webkit.org/results/14764668
Comment 8 WebKit Review Bot 2012-11-08 12:04:27 PST
Comment on attachment 173054 [details]
Patch

Clearing flags on attachment: 173054

Committed r133927: <http://trac.webkit.org/changeset/133927>
Comment 9 WebKit Review Bot 2012-11-08 12:04:33 PST
All reviewed patches have been landed.  Closing bug.