Index: Source/core/rendering/FastTextAutosizer.cpp |
diff --git a/Source/core/rendering/FastTextAutosizer.cpp b/Source/core/rendering/FastTextAutosizer.cpp |
index 75760b10983e62cb3e4dc56cf4b9b5e71f3cbf50..ede8ff151f63c1e024ea80fcc7ce9fdcf9635f46 100644 |
--- a/Source/core/rendering/FastTextAutosizer.cpp |
+++ b/Source/core/rendering/FastTextAutosizer.cpp |
@@ -616,7 +616,8 @@ bool FastTextAutosizer::clusterHasEnoughTextToAutosize(Cluster* cluster, const R |
RenderObject* descendant = root->nextInPreOrder(root); |
while (descendant) { |
if (descendant->isRenderBlock()) { |
- if (!descendant->isTableCell() && classifyBlock(descendant, INDEPENDENT | SUPPRESSING)) { |
+ if (!(descendant->isTableCell() || (root->isTableCell() && descendant->isTable())) |
+ && classifyBlock(descendant, INDEPENDENT | SUPPRESSING)) { |
descendant = descendant->nextInPreOrderAfterChildren(root); |
continue; |
} |