Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1338)

Issue 9500015: Pass DefaultDeviceScaleFactor to webkit (Closed)

Created:
8 years, 9 months ago by tdresser
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, rjkroege
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Pass DefaultDeviceScaleFactor to webkit DefaultDeviceScaleFactor will be based solely on the screen DPI, as opposed to DeviceScaleFactor, which incorporates information from the viewport tag. This is a follow-up to: https://bugs.webkit.org/show_bug.cgi?id=79534 BUG=115231 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124411

Patch Set 1 #

Patch Set 2 : Ensure OverrideWebkitPrefs receives correct default_device_scale_factor #

Total comments: 2

Patch Set 3 : RenderViewImpl reads defaultDeviceScaleFactor from WebPreferences #

Patch Set 4 : Don't pass --default-device-scale-factor commandline flag to the renderer #

Total comments: 2

Patch Set 5 : Style nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -8 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M webkit/glue/webpreferences.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webpreferences.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tdresser
8 years, 9 months ago (2012-02-29 15:35:34 UTC) #1
Fady Samuel
Tim, there's code in RenderViewImpl's constructor that's redundant now that you're taking this approach. Could ...
8 years, 9 months ago (2012-02-29 15:42:25 UTC) #2
tdresser
https://chromiumcodereview.appspot.com/9500015/diff/4002/content/browser/tab_contents/tab_contents.cc File content/browser/tab_contents/tab_contents.cc (right): https://chromiumcodereview.appspot.com/9500015/diff/4002/content/browser/tab_contents/tab_contents.cc#newcode466 content/browser/tab_contents/tab_contents.cc:466: if (default_device_scale_factor) On 2012/02/29 15:42:25, Fady Samuel wrote: > ...
8 years, 9 months ago (2012-02-29 16:51:30 UTC) #3
Fady Samuel
Sweet thanks! Sorry, one more thing before I forget, could you please get rid of ...
8 years, 9 months ago (2012-02-29 16:55:16 UTC) #4
tdresser
8 years, 9 months ago (2012-02-29 18:09:36 UTC) #5
Fady Samuel
On 2012/02/29 18:09:36, tdresser wrote: lgtm. Darin, could you please have a look as an ...
8 years, 9 months ago (2012-02-29 18:17:35 UTC) #6
darin (slow to review)
LGTM http://codereview.chromium.org/9500015/diff/4005/content/browser/tab_contents/tab_contents.cc File content/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/9500015/diff/4005/content/browser/tab_contents/tab_contents.cc#newcode463 content/browser/tab_contents/tab_contents.cc:463: switches::kDefaultDeviceScaleFactor), nit: indent parameter to GetSwitchValueASCII so it ...
8 years, 9 months ago (2012-02-29 22:15:06 UTC) #7
tdresser
http://codereview.chromium.org/9500015/diff/4005/content/browser/tab_contents/tab_contents.cc File content/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/9500015/diff/4005/content/browser/tab_contents/tab_contents.cc#newcode463 content/browser/tab_contents/tab_contents.cc:463: switches::kDefaultDeviceScaleFactor), On 2012/02/29 22:15:06, darin wrote: > nit: indent ...
8 years, 9 months ago (2012-03-01 14:05:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/9500015/12001
8 years, 9 months ago (2012-03-01 14:05:27 UTC) #9
commit-bot: I haz the power
8 years, 9 months ago (2012-03-01 15:40:12 UTC) #10
Change committed as 124411

Powered by Google App Engine
This is Rietveld 408576698