Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(736)

Unified Diff: Source/core/html/parser/CompactHTMLToken.cpp

Issue 1317143005: [WIP] do something :-) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.cpp ('k') | Source/core/layout/FloatingObjects.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.cpp ('k') | Source/core/layout/FloatingObjects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698