Index: Source/core/dom/Text.cpp |
diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp |
index 119d1dc6eb4288b9c2d73b189472cdfceba08c5e..c36409ba691fc60b5f78e09d74a279b3e1249864 100644 |
--- a/Source/core/dom/Text.cpp |
+++ b/Source/core/dom/Text.cpp |
@@ -211,7 +211,8 @@ bool Text::textRendererIsNeeded(const NodeRenderingContext& context) |
return true; |
RenderObject* parent = context.parentRenderer(); |
- if (parent->isTable() || parent->isTableRow() || parent->isTableSection() || parent->isRenderTableCol() || parent->isFrameSet()) |
+ if (parent->isTable() || parent->isTableRow() || parent->isTableSection() || parent->isRenderTableCol() || parent->isFrameSet() |
+ || parent->isFlexibleBox() || parent->isRenderGrid()) |
return false; |
if (context.style()->preserveNewline()) // pre/pre-wrap/pre-line always make renderers. |