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

Issue 49913005: Add Settings::deviceScaleAdjustment. (Closed)

Created:
7 years, 1 month ago by skobes
Modified:
7 years, 1 month ago
CC:
blink-reviews, jamesr, bemjb+rendering_chromium.org, zoltan1, eae+blinkwatch, leviw+renderwatch, abarth-chromium, dglazkov+blink, jchaffraix+rendering, aelias_OOO_until_Jul13
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add Settings::deviceScaleAdjustment. This will be used to plumb the 1.05-1.3x fudge factor separately from the font scale factor. It is applied to the autosizer's cluster multiplier only when the page does not set an explicit meta viewport or @viewport. BUG=252828 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160957

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments. #

Total comments: 4

Patch Set 3 : Address review comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -3 lines) Patch
M Source/core/dom/ViewportDescription.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/Settings.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M Source/core/page/Settings.cpp View 1 2 3 chunks +14 lines, -3 lines 0 comments Download
M Source/core/rendering/TextAutosizer.cpp View 1 1 chunk +6 lines, -0 lines 2 comments Download
M Source/web/WebSettingsImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
skobes
7 years, 1 month ago (2013-10-29 01:19:25 UTC) #1
pdr.
I think the Source/core side looks good with a few nits. https://codereview.chromium.org/49913005/diff/1/Source/core/page/Settings.cpp File Source/core/page/Settings.cpp (right): ...
7 years, 1 month ago (2013-10-29 02:04:44 UTC) #2
skobes
https://codereview.chromium.org/49913005/diff/1/Source/core/page/Settings.cpp File Source/core/page/Settings.cpp (right): https://codereview.chromium.org/49913005/diff/1/Source/core/page/Settings.cpp#newcode262 Source/core/page/Settings.cpp:262: void Settings::recalculateAutosizingMultipliers() On 2013/10/29 02:04:44, pdr wrote: > Confusingly, ...
7 years, 1 month ago (2013-10-29 17:43:31 UTC) #3
pdr.
LGTM. @jamesr, do you like this too?
7 years, 1 month ago (2013-10-30 03:17:51 UTC) #4
jamesr
I don't know much about this fudge factor, but the plumbing of it lgtm
7 years, 1 month ago (2013-10-30 03:40:43 UTC) #5
pdr.
Two nits I discovered while plumbing this through for the inspector emulation side. https://codereview.chromium.org/49913005/diff/80001/Source/core/page/Settings.cpp File ...
7 years, 1 month ago (2013-10-30 04:53:07 UTC) #6
skobes
https://codereview.chromium.org/49913005/diff/80001/Source/core/page/Settings.cpp File Source/core/page/Settings.cpp (right): https://codereview.chromium.org/49913005/diff/80001/Source/core/page/Settings.cpp#newcode123 Source/core/page/Settings.cpp:123: , m_deviceScaleAdjustment(1.0f) On 2013/10/30 04:53:08, pdr wrote: > I ...
7 years, 1 month ago (2013-10-30 17:35:50 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skobes@chromium.org/49913005/180001
7 years, 1 month ago (2013-10-30 17:36:07 UTC) #8
commit-bot: I haz the power
Change committed as 160957
7 years, 1 month ago (2013-10-30 18:55:23 UTC) #9
johnme
https://codereview.chromium.org/49913005/diff/180001/Source/core/rendering/TextAutosizer.cpp File Source/core/rendering/TextAutosizer.cpp (right): https://codereview.chromium.org/49913005/diff/180001/Source/core/rendering/TextAutosizer.cpp#newcode214 Source/core/rendering/TextAutosizer.cpp:214: if (!viewportDescription.isSpecifiedByAuthor()) { Didn't we say we'd disable the ...
7 years, 1 month ago (2013-11-05 18:56:39 UTC) #10
skobes
https://codereview.chromium.org/49913005/diff/180001/Source/core/rendering/TextAutosizer.cpp File Source/core/rendering/TextAutosizer.cpp (right): https://codereview.chromium.org/49913005/diff/180001/Source/core/rendering/TextAutosizer.cpp#newcode214 Source/core/rendering/TextAutosizer.cpp:214: if (!viewportDescription.isSpecifiedByAuthor()) { On 2013/11/05 18:56:40, johnme wrote: > ...
7 years, 1 month ago (2013-11-05 19:02:45 UTC) #11
johnme
On 2013/11/05 19:02:45, skobes wrote: > https://codereview.chromium.org/49913005/diff/180001/Source/core/rendering/TextAutosizer.cpp > File Source/core/rendering/TextAutosizer.cpp (right): > > https://codereview.chromium.org/49913005/diff/180001/Source/core/rendering/TextAutosizer.cpp#newcode214 > ...
7 years, 1 month ago (2013-11-05 19:10:39 UTC) #12
pdr.
On 2013/11/05 19:10:39, johnme wrote: > > (I believe this is the proposal we agreed ...
7 years, 1 month ago (2013-11-05 20:35:54 UTC) #13
johnme
On 2013/11/05 20:35:54, pdr wrote: > On 2013/11/05 19:10:39, johnme wrote: > > > (I ...
7 years, 1 month ago (2013-11-05 20:49:23 UTC) #14
skobes
> Having a width=980 (or similar) meta viewport is considered by web developers to > ...
7 years, 1 month ago (2013-11-05 20:55:28 UTC) #15
skobes
On 2013/11/05 20:49:23, johnme wrote: > It's very common. For example http://theverge.com (when viewed on ...
7 years, 1 month ago (2013-11-05 21:05:15 UTC) #16
skobes
(@aelias, let me know if you have any thoughts)
7 years, 1 month ago (2013-11-05 21:12:53 UTC) #17
aelias_OOO_until_Jul13
I'd just note as an additional data point that "meta viewport" isn't respected by desktop ...
7 years, 1 month ago (2013-11-05 21:48:23 UTC) #18
johnme
On 2013/11/05 20:55:28, skobes wrote: > > Having a width=980 (or similar) meta viewport is ...
7 years, 1 month ago (2013-11-11 14:29:45 UTC) #19
skobes
On 2013/11/11 14:29:45, johnme wrote: > The point is, that many sites don't have mobile ...
7 years, 1 month ago (2013-11-11 19:29:28 UTC) #20
skobes
On 2013/11/11 19:29:28, skobes wrote: > On 2013/11/11 14:29:45, johnme wrote: > > The point ...
7 years, 1 month ago (2013-11-12 19:33:13 UTC) #21
johnme
On 2013/11/12 19:33:13, skobes wrote: > If the threshold for "being a desktop site" is ...
7 years, 1 month ago (2013-11-12 20:11:30 UTC) #22
skobes
On 2013/11/12 20:11:30, johnme wrote: > On 2013/11/12 19:33:13, skobes wrote: > > If the ...
7 years, 1 month ago (2013-11-12 21:13:38 UTC) #23
johnme
On 2013/11/12 21:13:38, skobes wrote: > s/autosize/apply the fudge factor/ Ooh! Though I still don't ...
7 years, 1 month ago (2013-11-12 22:38:41 UTC) #24
skobes
7 years, 1 month ago (2013-11-12 23:07:42 UTC) #25
Message was sent while issue was closed.
On 2013/11/12 22:38:41, johnme wrote:
> On 2013/11/12 21:13:38, skobes wrote:
> > s/autosize/apply the fudge factor/
> 
> Ooh! Though I still don't get your meaning. We will apply the fudge factor on
> both portrait and landscape N10; it's just that in landscape the fudge factor
> gets applied by reducing the layout width and uniformly scaling the site,
> whereas in portrait the fudge factor gets applied by performing Text
Autosizing.
> But the end result is that autosized text will look the same size in both
cases.

The intent of THIS patch was to stop applying the fudge factor to mobile
websites.  The intent of https://codereview.chromium.org/61593006/ was, for
websites where we DO apply the fudge factor, to change the manner in which it is
applied, by applying it to layout width instead of text autosizing.

If a website with no meta viewport on a landscape N10 is considered a "mobile
website", then https://codereview.chromium.org/61593006/ becomes a nop, because
the only scenario in which we have room to reduce the layout width will have
been reclassified as one in which we don't want to apply the fudge factor.

Powered by Google App Engine
This is Rietveld 408576698