Index: Source/core/layout/LayoutInline.cpp |
diff --git a/Source/core/layout/LayoutInline.cpp b/Source/core/layout/LayoutInline.cpp |
index a72248614be36d9b406d346c03ac60e93da8ad2b..f1ddfb8c3c9dd724458570d9c29ffd81b9bd0e7a 100644 |
--- a/Source/core/layout/LayoutInline.cpp |
+++ b/Source/core/layout/LayoutInline.cpp |
@@ -42,16 +42,11 @@ |
#include "platform/geometry/FloatQuad.h" |
#include "platform/geometry/Region.h" |
#include "platform/geometry/TransformState.h" |
+#include "wtf/SizeAssertions.h" |
namespace blink { |
-struct SameSizeAsLayoutInline : public LayoutBoxModelObject { |
- virtual ~SameSizeAsLayoutInline() { } |
- LayoutObjectChildList m_children; |
- LineBoxList m_lineBoxes; |
-}; |
- |
-static_assert(sizeof(LayoutInline) == sizeof(SameSizeAsLayoutInline), "LayoutInline should stay small"); |
+ASSERT_SIZE(LayoutInline, sizeof(LayoutBoxModelObject) + 16, sizeof(LayoutBoxModelObject) + 32); |
LayoutInline::LayoutInline(Element* element) |
: LayoutBoxModelObject(element) |