Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: sky/engine/core/dom/Text.cpp

Issue 1077473002: Stop rendering text inside flex boxes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: make p default to display: paragraph Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/css/resolver/StyleResolver.cpp ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « sky/engine/core/css/resolver/StyleResolver.cpp ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698