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

Unified Diff: Source/core/css/parser/CSSParserToken.cpp

Issue 1176393005: Remove usage of CSSParserValue in MediaQueryParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add comment Created 5 years, 6 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
Index: Source/core/css/parser/CSSParserToken.cpp
diff --git a/Source/core/css/parser/CSSParserToken.cpp b/Source/core/css/parser/CSSParserToken.cpp
index 5ac3d2cbf4d2ed44fa1fa9fd95e8cbb01c671b86..222e78fe177e1dc6f391a45b1345dc91650fa313 100644
--- a/Source/core/css/parser/CSSParserToken.cpp
+++ b/Source/core/css/parser/CSSParserToken.cpp
@@ -13,6 +13,11 @@
namespace blink {
+struct SameSizeAsCSSParserToken {
+ void* fields[3];
Timothy Loh 2015/06/16 00:05:36 IIRC we're 20B on 32-bit and 24B on 64-bit.
rwlbuis 2015/06/16 02:34:15 Done.
+};
+static_assert(sizeof(CSSParserToken) == sizeof(SameSizeAsCSSParserToken), "CSSParserToken should stay small");
+
CSSParserToken::CSSParserToken(CSSParserTokenType type, BlockType blockType)
: m_type(type)
, m_blockType(blockType)

Powered by Google App Engine
This is Rietveld 408576698