| 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..4e01acc17b6d2076fd5133db441c1ae8be30d719 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()
|
| +{
|
| + switch (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
|
|
|