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

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

Issue 2906033002: Fix narrow child cluster inherit multiplier from wide parent cluster (Closed)
Patch Set: format Created 3 years, 7 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 0054e2b6da292016865d95e32b16c48f04640c0e..08dd8e62656efc5e2a7a475be3ea37a2ad9befc1 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
@@ -1155,7 +1155,8 @@ bool TextAutosizer::IsWiderOrNarrowerDescendant(Cluster* cluster) {
parent_deepest_block_containing_all_text));
#endif
- float content_width = cluster->root_->ContentLogicalWidth().ToFloat();
+ float content_width =
+ DeepestBlockContainingAllText(cluster)->ContentLogicalWidth().ToFloat();
float cluster_text_width =
parent_deepest_block_containing_all_text->ContentLogicalWidth().ToFloat();
« 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