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

Unified Diff: third_party/WebKit/Source/core/css/CSSValueList.cpp

Issue 2324083002: Added ASSERT_SIZE checks to CSSValueList and CSSPrimitiveValue (Closed)
Patch Set: Changed void* to double in SameSizeAs check for PrimitiveValue Created 4 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 | « third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSValueList.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSValueList.cpp b/third_party/WebKit/Source/core/css/CSSValueList.cpp
index 8822908e52338cc5774df5802ec80d830a3a770b..9b357fb7e79cf466bf869dcf3af8e3e6ce36ae0c 100644
--- a/third_party/WebKit/Source/core/css/CSSValueList.cpp
+++ b/third_party/WebKit/Source/core/css/CSSValueList.cpp
@@ -22,10 +22,16 @@
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/parser/CSSParser.h"
+#include "wtf/SizeAssertions.h"
#include "wtf/text/StringBuilder.h"
namespace blink {
+struct SameSizeAsCSSValueList : CSSValue {
+ Vector<Member<CSSValue>, 4> list_values;
+};
+ASSERT_SIZE(CSSValueList, SameSizeAsCSSValueList);
+
CSSValueList::CSSValueList(ClassType classType, ValueListSeparator listSeparator)
: CSSValue(classType)
{
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698