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

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

Issue 2817443003: Fix font-size shaking issue in some pages (Closed)
Patch Set: rebaseline layout-after-append.html Created 3 years, 8 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
Index: third_party/WebKit/Source/core/layout/TextAutosizer.h
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.h b/third_party/WebKit/Source/core/layout/TextAutosizer.h
index bfacc62ecfeb874b2360f41b0385c41a2411d889..e1b12e2f77162d826c1b9ead4b0396392cc9a46d 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.h
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.h
@@ -309,8 +309,9 @@ class CORE_EXPORT TextAutosizer final
float ClusterMultiplier(Cluster*);
float SuperclusterMultiplier(Cluster*);
// A cluster's width provider is typically the deepest block containing all
- // text. There are exceptions, such as tables and table cells which use the
- // table itself for width.
+ // text. There are exceptions:
+ // 1. Tables and table cells which use the table itself for width.
+ // 2. LayoutView which use itself for keeping its clusterMultiplier steady.
const LayoutBlock* ClusterWidthProvider(const LayoutBlock*) const;
const LayoutBlock* MaxClusterWidthProvider(
Supercluster*,

Powered by Google App Engine
This is Rietveld 408576698