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

Issue 61593006: Zoom instead of autosizing for desktop sites. (Closed)

Created:
7 years, 1 month ago by skobes
Modified:
6 years, 2 months ago
CC:
blink-reviews, johnme, aelias_OOO_until_Jul13
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Replace text autosizing with page zoom in some cases. This applies the device scale adjustment as a reduction in layout width, so that text autosizing is not needed. It mainly affects desktop sites on landscape tablets, where the layout width can be reduced but remain >= 980px. BUG=135869

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments. #

Total comments: 4

Patch Set 3 : Address review comments. #

Patch Set 4 : Add a test. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M Source/web/PageScaleConstraintsSet.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/PageScaleConstraintsSet.cpp View 1 2 3 1 chunk +10 lines, -0 lines 3 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
skobes
This is the second half of proposal #4 in http://goo.gl/CcNYcf.
7 years, 1 month ago (2013-11-07 01:16:24 UTC) #1
aelias_OOO_until_Jul13
https://codereview.chromium.org/61593006/diff/1/Source/web/PageScaleConstraintsSet.cpp File Source/web/PageScaleConstraintsSet.cpp (right): https://codereview.chromium.org/61593006/diff/1/Source/web/PageScaleConstraintsSet.cpp#newcode190 Source/web/PageScaleConstraintsSet.cpp:190: if (width > minimumWidth && !viewportDescription.isSpecifiedByAuthor() && deviceScaleAdjustment > ...
7 years, 1 month ago (2013-11-07 02:05:25 UTC) #2
aelias_OOO_until_Jul13
Aside from the details above, I have the higher-level concern that I'm not sure this ...
7 years, 1 month ago (2013-11-07 02:07:50 UTC) #3
skobes
You're correct that this will have no effect in most cases (only large tablets in ...
7 years, 1 month ago (2013-11-07 17:55:26 UTC) #4
pdr.
LGTM but please wait for an LGTM from aelias as well.
7 years, 1 month ago (2013-11-07 22:00:26 UTC) #5
aelias_OOO_until_Jul13
> If widths below 980px are acceptable we can tweak the constant and possibly get ...
7 years, 1 month ago (2013-11-07 22:02:50 UTC) #6
skobes
https://codereview.chromium.org/61593006/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/61593006/diff/1/Source/web/WebViewImpl.cpp#newcode2999 Source/web/WebViewImpl.cpp:2999: ViewportDescription adjustedDescription = description; On 2013/11/07 22:02:50, aelias wrote: ...
7 years, 1 month ago (2013-11-08 03:26:46 UTC) #7
aelias_OOO_until_Jul13
OK, looks good. One more thing, could you write a test in WebFrameTest.cpp checking the ...
7 years, 1 month ago (2013-11-08 04:06:16 UTC) #8
skobes
On 2013/11/08 04:06:16, aelias wrote: > OK, looks good. One more thing, could you write ...
7 years, 1 month ago (2013-11-09 00:44:26 UTC) #9
aelias_OOO_until_Jul13
Try using Source/web/tests/data/no_viewport_tag.html . It has an explicit min-width to address the same problem in ...
7 years, 1 month ago (2013-11-09 01:46:56 UTC) #10
skobes
On 2013/11/09 01:46:56, aelias wrote: > Try using Source/web/tests/data/no_viewport_tag.html . It has an explicit > ...
7 years, 1 month ago (2013-11-09 03:36:03 UTC) #11
johnme
+Kenneth and Rune (our external viewport experts). (see http://crbug.com/135869, http://crbug.com/229151 and http://crbug.com/252828 for context) On ...
7 years, 1 month ago (2013-11-11 15:49:37 UTC) #12
johnme
Actually +Kenneth & Rune this time.
7 years, 1 month ago (2013-11-11 15:50:11 UTC) #13
bokan
On 2013/11/09 03:36:03, skobes wrote: > On 2013/11/09 01:46:56, aelias wrote: > > Try using ...
7 years, 1 month ago (2013-11-11 20:51:48 UTC) #14
skobes
John, thanks for the thorough response! On 2013/11/11 15:49:37, johnme wrote: > [Website tolerance of ...
7 years, 1 month ago (2013-11-11 21:43:06 UTC) #15
skobes
On 2013/11/11 20:51:48, bokan wrote: > I'm currently working on a CL that will inject ...
7 years, 1 month ago (2013-11-11 22:37:33 UTC) #16
skobes
On 2013/11/11 22:37:33, skobes wrote: > On 2013/11/11 20:51:48, bokan wrote: > > I'm currently ...
7 years, 1 month ago (2013-11-12 19:48:32 UTC) #17
kenneth.r.christiansen
https://codereview.chromium.org/61593006/diff/330001/Source/web/PageScaleConstraintsSet.cpp File Source/web/PageScaleConstraintsSet.cpp (right): https://codereview.chromium.org/61593006/diff/330001/Source/web/PageScaleConstraintsSet.cpp#newcode207 Source/web/PageScaleConstraintsSet.cpp:207: if (!viewportDescription.isSpecifiedByAuthor()) { I am not sure that is ...
7 years, 1 month ago (2013-11-19 16:32:52 UTC) #18
kenneth.r.christiansen
Did this get abandoned?
6 years, 11 months ago (2014-01-27 17:22:28 UTC) #19
skobes
6 years, 11 months ago (2014-01-27 17:30:54 UTC) #20
On 2014/01/27 17:22:28, kenneth.r.christiansen wrote:
> Did this get abandoned?

Yes, given the limited scope (10" tablets in landscape) and concerns raised
about crispness and distinguishing mobile vs. desktop sites I decided not to
pursue this and focus my time on the single-pass autosizer.  Feel free to pick
it up if you like.

Powered by Google App Engine
This is Rietveld 408576698