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

Issue 2329733002: 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

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. BUG=645269 Committed: https://crrev.com/eccac1fd6db85731fb95b11915fc2197a6ceb0c3 Cr-Commit-Position: refs/heads/master@{#418173}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address reviewer comments #

Patch Set 3 : patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -25 lines) Patch
M third_party/WebKit/Source/core/layout/TextAutosizer.h View 1 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 6 chunks +125 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
pdr.
4 years, 3 months ago (2016-09-10 03:18:05 UTC) #3
skobes
https://codereview.chromium.org/2329733002/diff/1/third_party/WebKit/Source/core/layout/TextAutosizer.cpp File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/2329733002/diff/1/third_party/WebKit/Source/core/layout/TextAutosizer.cpp#newcode566 third_party/WebKit/Source/core/layout/TextAutosizer.cpp:566: m_pageInfo.m_pageNeedsAutosizing = !!m_pageInfo.m_frameWidth Out of scope for this change, ...
4 years, 3 months ago (2016-09-12 21:45:44 UTC) #8
pdr.
https://codereview.chromium.org/2329733002/diff/1/third_party/WebKit/Source/core/layout/TextAutosizer.cpp File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/2329733002/diff/1/third_party/WebKit/Source/core/layout/TextAutosizer.cpp#newcode998 third_party/WebKit/Source/core/layout/TextAutosizer.cpp:998: multiplier = currentStyle.getTextSizeAdjust().multiplier() * m_pageInfo.m_accessibilityFontScaleFactor; On 2016/09/12 at 21:45:44, ...
4 years, 3 months ago (2016-09-13 03:31:19 UTC) #9
pdr.
On 2016/09/12 at 21:45:44, skobes wrote: > https://codereview.chromium.org/2329733002/diff/1/third_party/WebKit/Source/core/layout/TextAutosizer.cpp > File third_party/WebKit/Source/core/layout/TextAutosizer.cpp (right): > > https://codereview.chromium.org/2329733002/diff/1/third_party/WebKit/Source/core/layout/TextAutosizer.cpp#newcode566 ...
4 years, 3 months ago (2016-09-13 03:36:23 UTC) #10
pdr.
PTAL
4 years, 3 months ago (2016-09-13 03:36:43 UTC) #12
skobes
lgtm
4 years, 3 months ago (2016-09-13 04:11:53 UTC) #14
pdr.
On 2016/09/13 at 04:11:53, skobes wrote: > lgtm Thanks!
4 years, 3 months ago (2016-09-13 05:10:33 UTC) #17
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/2329733002/20001
4 years, 3 months ago (2016-09-13 05:10:46 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-13 05:14:10 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/eccac1fd6db85731fb95b11915fc2197a6ceb0c3 Cr-Commit-Position: refs/heads/master@{#418173}
4 years, 3 months ago (2016-09-13 05:16:16 UTC) #22
aberent
4 years, 3 months ago (2016-09-13 17:05:07 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2335193003/ by aberent@chromium.org.

The reason for reverting is: Broke
ContextualSearchManagerTest#testChainedSearchCreatesNewContent and
ContextualSearchManagerTest#testChainedTapsRemovedFromHistory

BUG=646342.

Powered by Google App Engine
This is Rietveld 408576698