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

Unified Diff: Source/core/style/StyleRareInheritedData.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/style/StyleBoxData.cpp ('k') | Source/core/style/StyleRareNonInheritedData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/StyleRareInheritedData.cpp
diff --git a/Source/core/style/StyleRareInheritedData.cpp b/Source/core/style/StyleRareInheritedData.cpp
index e0d73d93c06f3af61072ae5868ff1a9176e1b55c..d2d95a33c83b96d7013567c388b2e75276633953 100644
--- a/Source/core/style/StyleRareInheritedData.cpp
+++ b/Source/core/style/StyleRareInheritedData.cpp
@@ -30,33 +30,11 @@
#include "core/style/QuotesData.h"
#include "core/style/ShadowList.h"
#include "core/style/StyleImage.h"
+#include "wtf/SizeAssertions.h"
namespace blink {
-struct SameSizeAsStyleRareInheritedData : public RefCounted<SameSizeAsStyleRareInheritedData> {
- void* styleImage;
- Color firstColor;
- float firstFloat;
- Color colors[5];
- void* ownPtrs[1];
- AtomicString atomicStrings[4];
-#if ENABLE(OILPAN)
- void* refPtrs[1];
- Persistent<void*> persistentHandles[2];
-#else
- void* refPtrs[3];
-#endif
- Length lengths[1];
- float secondFloat;
- unsigned m_bitfields[2];
- short pagedMediaShorts[2];
- short hyphenationShorts[3];
-
- Color touchColors;
- TabSize tabSize;
-};
-
-static_assert(sizeof(StyleRareInheritedData) <= sizeof(SameSizeAsStyleRareInheritedData), "StyleRareInheritedData should stay small");
+ASSERT_SIZE(StyleRareInheritedData, 112, 160);
StyleRareInheritedData::StyleRareInheritedData()
: listStyleImage(ComputedStyle::initialListStyleImage())
« no previous file with comments | « Source/core/style/StyleBoxData.cpp ('k') | Source/core/style/StyleRareNonInheritedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698