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

Issue 28053002: Add font_scale_factor_quirk pref. (Closed)

Created:
7 years, 2 months ago by skobes
Modified:
7 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master.pinned
Visibility:
Public.

Description

Add font_scale_factor_quirk pref. This is an Android-specific boolean pref defaulting to true, which indicates whether font_scale_factor includes the 1.05-1.3x multiplier that is currently applied by Clank on startup. The goal is to move this multiplier out of Clank and into the content layer. When font_scale_factor_quirk is false, the multiplier is applied in content::ApplyWebPreferences. This pref can be removed after Clank code is updated. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230042

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments. #

Total comments: 1

Patch Set 3 : Move logic from renderer to browser. #

Total comments: 2

Patch Set 4 : Address review comments. #

Total comments: 2

Patch Set 5 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -8 lines) Patch
M android_webview/native/aw_settings.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 chunks +32 lines, -2 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/web_preferences.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M ui/gfx/android/device_display_info.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gfx/android/device_display_info.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/common/webpreferences.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webkit/common/webpreferences.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
skobes
I will need to add a bunch more reviewers but can you guys do a ...
7 years, 2 months ago (2013-10-18 03:04:17 UTC) #1
aelias_OOO_until_Jul13
I think you might run into the problem that the quirk bool is hard to ...
7 years, 2 months ago (2013-10-18 03:23:39 UTC) #2
skobes
On 2013/10/18 03:23:39, aelias wrote: > I think you might run into the problem that ...
7 years, 2 months ago (2013-10-18 16:41:04 UTC) #3
pdr.
On 2013/10/18 16:41:04, skobes wrote: > 1. land this, wait for it to roll into ...
7 years, 2 months ago (2013-10-18 17:20:55 UTC) #4
abarth-chromium
On 2013/10/18 17:20:55, pdr wrote: > On 2013/10/18 16:41:04, skobes wrote: > > 1. land ...
7 years, 2 months ago (2013-10-18 17:24:36 UTC) #5
skobes
On 2013/10/18 17:24:36, abarth wrote: > That sounds like it could work. The other option ...
7 years, 2 months ago (2013-10-18 17:32:35 UTC) #6
abarth-chromium
On 2013/10/18 17:32:35, skobes wrote: > Not sure I understand how a preprocessor macro would ...
7 years, 2 months ago (2013-10-18 17:43:24 UTC) #7
skobes
On 2013/10/18 17:43:24, abarth wrote: > #define NO_FONT_SCALE_FACTOR_QUIRK_DOWNSTREAM What file would this #define appear in? ...
7 years, 2 months ago (2013-10-18 17:57:45 UTC) #8
abarth-chromium
On 2013/10/18 17:57:45, skobes wrote: > On 2013/10/18 17:43:24, abarth wrote: > > #define NO_FONT_SCALE_FACTOR_QUIRK_DOWNSTREAM ...
7 years, 2 months ago (2013-10-18 18:11:07 UTC) #9
skobes
Ok, since there are no high level objections I'll move forward with this approach. aelias ...
7 years, 2 months ago (2013-10-18 23:10:52 UTC) #10
Ted C
On 2013/10/18 23:10:52, skobes wrote: > Ok, since there are no high level objections I'll ...
7 years, 2 months ago (2013-10-18 23:17:21 UTC) #11
Avi (use Gerrit)
OK. LGTM
7 years, 2 months ago (2013-10-19 02:29:56 UTC) #12
aelias_OOO_until_Jul13
lgtm https://codereview.chromium.org/28053002/diff/1/content/renderer/web_preferences.cc File content/renderer/web_preferences.cc (right): https://codereview.chromium.org/28053002/diff/1/content/renderer/web_preferences.cc#newcode131 content/renderer/web_preferences.cc:131: if (minWidth <= kWidthForMinFSM) return kMinFSM; nit: return ...
7 years, 2 months ago (2013-10-19 03:27:43 UTC) #13
Bernhard Bauer
prefs LGTM.
7 years, 2 months ago (2013-10-19 10:17:37 UTC) #14
skobes
https://codereview.chromium.org/28053002/diff/1/content/renderer/web_preferences.cc File content/renderer/web_preferences.cc (right): https://codereview.chromium.org/28053002/diff/1/content/renderer/web_preferences.cc#newcode131 content/renderer/web_preferences.cc:131: if (minWidth <= kWidthForMinFSM) return kMinFSM; On 2013/10/19 03:27:43, ...
7 years, 2 months ago (2013-10-21 17:49:29 UTC) #15
jamesr
https://codereview.chromium.org/28053002/diff/180001/content/renderer/web_preferences.cc File content/renderer/web_preferences.cc (right): https://codereview.chromium.org/28053002/diff/180001/content/renderer/web_preferences.cc#newcode130 content/renderer/web_preferences.cc:130: int minWidth = info.GetSmallestDIPWidth(); we shouldn't be doing logic ...
7 years, 2 months ago (2013-10-21 17:58:32 UTC) #16
skobes
On 2013/10/21 17:58:32, jamesr wrote: > https://codereview.chromium.org/28053002/diff/180001/content/renderer/web_preferences.cc > File content/renderer/web_preferences.cc (right): > > https://codereview.chromium.org/28053002/diff/180001/content/renderer/web_preferences.cc#newcode130 > ...
7 years, 2 months ago (2013-10-21 18:04:39 UTC) #17
jamesr
On 2013/10/21 18:04:39, skobes wrote: > On 2013/10/21 17:58:32, jamesr wrote: > > > https://codereview.chromium.org/28053002/diff/180001/content/renderer/web_preferences.cc ...
7 years, 2 months ago (2013-10-21 18:06:37 UTC) #18
skobes
On 2013/10/21 18:06:37, jamesr wrote: > On 2013/10/21 18:04:39, skobes wrote: > > On 2013/10/21 ...
7 years, 2 months ago (2013-10-21 18:13:35 UTC) #19
skobes
Moved logic out of ApplyWebPreferences and into ChromeContentBrowserClient::OverrideWebkitPrefs. Removed WebPreferences::font_scale_factor_quirk which is no longer needed. ...
7 years, 2 months ago (2013-10-21 22:29:46 UTC) #20
jamesr
lgtm https://codereview.chromium.org/28053002/diff/270001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/28053002/diff/270001/chrome/browser/chrome_content_browser_client.cc#newcode571 chrome/browser/chrome_content_browser_client.cc:571: const float kMinFSM = 1.05f; add 'static'
7 years, 2 months ago (2013-10-21 22:32:25 UTC) #21
skobes
Added boliu for OWNERS in android_webview. https://codereview.chromium.org/28053002/diff/270001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/28053002/diff/270001/chrome/browser/chrome_content_browser_client.cc#newcode571 chrome/browser/chrome_content_browser_client.cc:571: const float kMinFSM ...
7 years, 2 months ago (2013-10-21 22:35:57 UTC) #22
boliu
android_webview lgtm
7 years, 2 months ago (2013-10-21 22:47:21 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/28053002/420001
7 years, 2 months ago (2013-10-21 22:51:24 UTC) #24
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=31685
7 years, 2 months ago (2013-10-21 23:08:25 UTC) #25
skobes
Adding yfriedman for ui/gfx/android/device_display_info.*. Not sure why tedchoc's LGTM was not sufficient (http://crbug.com/309856).
7 years, 2 months ago (2013-10-21 23:59:10 UTC) #26
Yaron
lgtm https://codereview.chromium.org/28053002/diff/420001/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java File ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java (right): https://codereview.chromium.org/28053002/diff/420001/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java#newcode123 ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java:123: public int getSmallestDIPWidth() { since this is only ...
7 years, 2 months ago (2013-10-22 00:18:32 UTC) #27
skobes
https://codereview.chromium.org/28053002/diff/420001/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java File ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java (right): https://codereview.chromium.org/28053002/diff/420001/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java#newcode123 ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java:123: public int getSmallestDIPWidth() { On 2013/10/22 00:18:33, Yaron wrote: ...
7 years, 2 months ago (2013-10-22 00:24:07 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/28053002/380001
7 years, 2 months ago (2013-10-22 00:25:18 UTC) #29
commit-bot: I haz the power
7 years, 2 months ago (2013-10-22 04:04:02 UTC) #30
Message was sent while issue was closed.
Change committed as 230042

Powered by Google App Engine
This is Rietveld 408576698