Index: Source/core/dom/ElementData.cpp |
diff --git a/Source/core/dom/ElementData.cpp b/Source/core/dom/ElementData.cpp |
index 0dd820cbabc7ff17279014603ea6c23fc90a7ff4..0c850d7354bac52f90a012da5dc8d9f80d1f82b6 100644 |
--- a/Source/core/dom/ElementData.cpp |
+++ b/Source/core/dom/ElementData.cpp |
@@ -33,16 +33,12 @@ |
#include "core/css/StylePropertySet.h" |
#include "core/dom/QualifiedName.h" |
+#include "wtf/SizeAssertions.h" |
#include "wtf/Vector.h" |
namespace blink { |
-struct SameSizeAsElementData : public RefCountedWillBeGarbageCollectedFinalized<SameSizeAsElementData> { |
- unsigned bitfield; |
- void* pointers[3]; |
-}; |
- |
-static_assert(sizeof(ElementData) == sizeof(SameSizeAsElementData), "ElementData should stay small"); |
+ASSERT_SIZE(ElementData, 20, 32); |
static size_t sizeForShareableElementDataWithAttributeCount(unsigned count) |
{ |