Index: Source/core/dom/ElementRareData.cpp |
diff --git a/Source/core/dom/ElementRareData.cpp b/Source/core/dom/ElementRareData.cpp |
index 08934494c16d767e836bef33f315ebc46ac14930..333e6279d0ce11a9146dd5e9b7b80083f499f339 100644 |
--- a/Source/core/dom/ElementRareData.cpp |
+++ b/Source/core/dom/ElementRareData.cpp |
@@ -32,15 +32,11 @@ |
#include "core/dom/ElementRareData.h" |
#include "core/style/ComputedStyle.h" |
+#include "wtf/SizeAssertions.h" |
namespace blink { |
-struct SameSizeAsElementRareData : NodeRareData { |
- short indices[2]; |
- LayoutSize sizeForResizing; |
- IntSize scrollOffset; |
- void* pointers[13]; |
-}; |
+ASSERT_SIZE(ElementRareData, 88, 152); |
CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* ownerElement) |
{ |
@@ -75,6 +71,4 @@ DEFINE_TRACE_AFTER_DISPATCH(ElementRareData) |
NodeRareData::traceAfterDispatch(visitor); |
} |
-static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "ElementRareData should stay small"); |
- |
} // namespace blink |