Index: sky/engine/core/dom/Text.cpp |
diff --git a/sky/engine/core/dom/Text.cpp b/sky/engine/core/dom/Text.cpp |
index dc61371573884e594a4a748db5eb0e60e226781f..742384c894dc2a7b016f87d261aebfff02152837 100644 |
--- a/sky/engine/core/dom/Text.cpp |
+++ b/sky/engine/core/dom/Text.cpp |
@@ -104,6 +104,9 @@ bool Text::textRendererIsNeeded(const RenderStyle& style, const RenderObject& pa |
if (style.display() == NONE) |
return false; |
+ if (style.requiresOnlyBlockChildren()) |
+ return false; |
+ |
if (!containsOnlyWhitespace()) |
return true; |