Index: sky/engine/core/rendering/style/RenderStyle.cpp |
diff --git a/sky/engine/core/rendering/style/RenderStyle.cpp b/sky/engine/core/rendering/style/RenderStyle.cpp |
index b131493481958b5cce8113b558097815abec1d6b..5371655a9c7bed48e923b2bd5d1ecbb3565a8e71 100644 |
--- a/sky/engine/core/rendering/style/RenderStyle.cpp |
+++ b/sky/engine/core/rendering/style/RenderStyle.cpp |
@@ -227,6 +227,28 @@ bool RenderStyle::inheritedDataShared(const RenderStyle* other) const |
&& rareInheritedData.get() == other->rareInheritedData.get(); |
} |
+bool RenderStyle::requiresOnlyBlockChildren(RenderStyle* style) |
esprehn
2015/01/09 00:56:57
This should just be a method, no reason for it to
|
+{ |
+ switch (style->display()) { |
+ case PARAGRAPH: |
+ case INLINE: |
+ return false; |
+ |
+ case BLOCK: |
+ case FLEX: |
+ case INLINE_FLEX: |
+ case INLINE_BLOCK: |
+ return true; |
+ |
+ case NONE: |
+ ASSERT_NOT_REACHED(); |
+ return false; |
+ } |
+ |
+ ASSERT_NOT_REACHED(); |
+ return false; |
+} |
+ |
static bool positionedObjectMovedOnly(const LengthBox& a, const LengthBox& b, const Length& width) |
{ |
// If any unit types are different, then we can't guarantee |