Index: Source/core/html/parser/CompactHTMLToken.cpp |
diff --git a/Source/core/html/parser/CompactHTMLToken.cpp b/Source/core/html/parser/CompactHTMLToken.cpp |
index 01940175059845aea2f90bd49a7de6947905b2ba..05a79fa93e321295beb8b59909177afe96b24983 100644 |
--- a/Source/core/html/parser/CompactHTMLToken.cpp |
+++ b/Source/core/html/parser/CompactHTMLToken.cpp |
@@ -28,17 +28,11 @@ |
#include "core/dom/QualifiedName.h" |
#include "core/html/parser/HTMLParserIdioms.h" |
+#include "wtf/SizeAssertions.h" |
namespace blink { |
-struct SameSizeAsCompactHTMLToken { |
- unsigned bitfields; |
- String data; |
- Vector<Attribute> vector; |
- TextPosition textPosition; |
-}; |
- |
-static_assert(sizeof(CompactHTMLToken) == sizeof(SameSizeAsCompactHTMLToken), "CompactHTMLToken should stay small"); |
+ASSERT_SIZE(CompactHTMLToken, 28, 40); |
CompactHTMLToken::CompactHTMLToken(const HTMLToken* token, const TextPosition& textPosition) |
: m_type(token->type()) |