| 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())
|
|
|