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

Issue 2340553003: (reland) Do not let text-size-adjust override accessibility font settings (Closed)

Created:
4 years, 3 months ago by pdr.
Modified:
4 years, 3 months ago
Reviewers:
skobes
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

(reland) Do not let text-size-adjust override accessibility font settings The text autosizer is used for both making desktop pages more legible on mobile, and for applying the accessibility font scale factor. When text-size-adjust support was added, pages were able to override the accessibility setting in addition to the autosizing multiplier. This patch ensures accessibility font scale settings are respected even with text-size-adjust. A followup bug has been filed (crbug.com/645717) for moving the accessibility font scale factor out of the autosizer. This patch also re-enables support for text-size-adjust which was disabled temporarily due to breaking accessibility settings. This was reverted due to a forgotten "!" in checking whether the viewport was specified by the author in TextAutosizer.cpp. A new test has been added to catch this in the future. The unneeded meta viewport declarations in all other tests have been removed because they had no effect with the meta viewport setting disabled. Original review: https://codereview.chromium.org/2329733002 BUG=645269, 646342 Committed: https://crrev.com/1229b1414d64c314666d2fb3bf47706f2b5e947b Cr-Commit-Position: refs/heads/master@{#418488}

Patch Set 1 #

Patch Set 2 : Fix check of whether the viewport is specified #

Total comments: 2

Patch Set 3 : Rename test DISABLED_TextSizeAdjustWithoutNeedingAutosizing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -33 lines) Patch
M third_party/WebKit/Source/core/layout/TextAutosizer.h View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.cpp View 1 4 chunks +22 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp View 1 2 9 chunks +161 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
pdr.
https://codereview.chromium.org/2340553003/diff/20001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/2340553003/diff/20001/third_party/WebKit/Source/core/layout/TextAutosizer.cpp#newcode559 third_party/WebKit/Source/core/layout/TextAutosizer.cpp:559: if (!mainFrame->document()->viewportDescription().isSpecifiedByAuthor()) The original patch was rolled out because ...
4 years, 3 months ago (2016-09-14 02:29:35 UTC) #4
skobes
lgtm w/ nit https://codereview.chromium.org/2340553003/diff/20001/third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp File third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp (right): https://codereview.chromium.org/2340553003/diff/20001/third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp#newcode341 third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp:341: TEST_F(TextAutosizerTest, DISABLED_TextSizeAdjustWithMetaViewport) Should this test be ...
4 years, 3 months ago (2016-09-14 02:34:38 UTC) #7
pdr.
On 2016/09/14 at 02:34:38, skobes wrote: > lgtm w/ nit > > https://codereview.chromium.org/2340553003/diff/20001/third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp > File ...
4 years, 3 months ago (2016-09-14 02:50:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2340553003/40001
4 years, 3 months ago (2016-09-14 02:53:37 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-14 04:41:10 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 04:43:14 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1229b1414d64c314666d2fb3bf47706f2b5e947b
Cr-Commit-Position: refs/heads/master@{#418488}

Powered by Google App Engine
This is Rietveld 408576698