Index: Source/core/dom/Node.cpp |
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
index 6cb9f35f4a68f03d5a4fde44829c03c71e8df83c..3db487ee9f586e3d73efe300e81c3e55e49ea067 100644 |
--- a/Source/core/dom/Node.cpp |
+++ b/Source/core/dom/Node.cpp |
@@ -90,6 +90,7 @@ |
#include "wtf/Partitions.h" |
#include "wtf/PassOwnPtr.h" |
#include "wtf/RefCountedLeakCounter.h" |
+#include "wtf/SizeAssertions.h" |
#include "wtf/Vector.h" |
#include "wtf/text/CString.h" |
#include "wtf/text/StringBuilder.h" |
@@ -98,12 +99,7 @@ namespace blink { |
using namespace HTMLNames; |
-struct SameSizeAsNode : NODE_BASE_CLASSES { |
- uint32_t m_nodeFlags; |
- void* m_pointer[5]; |
-}; |
- |
-static_assert(sizeof(Node) <= sizeof(SameSizeAsNode), "Node should stay small"); |
+ASSERT_SIZE(Node, 36, 64); |
#if !ENABLE(OILPAN) |
void* Node::operator new(size_t size) |