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(); |