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

Unified Diff: third_party/WebKit/Source/core/layout/TextAutosizer.cpp

Issue 2330513002: Temporarily stop honoring text-size-adjust as it breaks accessibility (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/TextAutosizer.cpp
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
index 0a1eaf60333bcd2e879a16c411c23d74b1f54bc2..5fa4132aebff94f1c0cfece478a5b10fd8520d44 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
@@ -988,7 +988,9 @@ void TextAutosizer::applyMultiplier(LayoutObject* layoutObject, float multiplier
{
ASSERT(layoutObject);
ComputedStyle& currentStyle = layoutObject->mutableStyleRef();
- if (!currentStyle.getTextSizeAdjust().isAuto()) {
+ // TODO(pdr): text-size-adjust is temporarily not honored due to
+ // breaking accessibility settings. See: https://645269.
+ if (false && !currentStyle.getTextSizeAdjust().isAuto()) {
multiplier = currentStyle.getTextSizeAdjust().multiplier();
} else if (multiplier < 1) {
// Unlike text-size-adjust, the text autosizer should only inflate fonts.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/TextAutosizerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698