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 a1477fcf3495f3c8524730ad2c98e2bb4d15353a..3b383f8af25480c38a69a1139a6b75ea44d2be9d 100644 |
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp |
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp |
@@ -450,7 +450,7 @@ float TextAutosizer::inflate(LayoutObject* parent, SubtreeLayoutScope* layouter, |
// FIXME: Investigate why MarkOnlyThis is sufficient. |
if (parent->isLayoutInline()) |
child->setPreferredLogicalWidthsDirty(MarkOnlyThis); |
- } else if (child->isLayoutInline()) { |
+ } else if (child->isLayoutInline() && behavior == DescendToInnerBlocks) { |
multiplier = inflate(child, layouter, behavior, multiplier); |
} else if (child->isLayoutBlock() && behavior == DescendToInnerBlocks |
&& !classifyBlock(child, INDEPENDENT | EXPLICIT_WIDTH | SUPPRESSING)) { |