Index: Source/core/style/StyleRareNonInheritedData.cpp |
diff --git a/Source/core/style/StyleRareNonInheritedData.cpp b/Source/core/style/StyleRareNonInheritedData.cpp |
index 084284a3acbf2dfa3bfe3afc64456cff0b6390f4..f407e78d106f42e2359758d614d2561bae19fb89 100644 |
--- a/Source/core/style/StyleRareNonInheritedData.cpp |
+++ b/Source/core/style/StyleRareNonInheritedData.cpp |
@@ -29,43 +29,11 @@ |
#include "core/style/StyleFilterData.h" |
#include "core/style/StyleTransformData.h" |
#include "core/layout/svg/ReferenceFilterBuilder.h" |
+#include "wtf/SizeAssertions.h" |
namespace blink { |
-class SameSizeStyleRareNonInheritedData : public RefCounted<StyleRareNonInheritedData> { |
-public: |
- float floats[3]; |
- int integers; |
- |
- LengthPoint lengthPoints[2]; |
- LineClampValue lineClamps; |
- DraggableRegionMode draggableRegions; |
- |
- void* dataRefs[10]; |
- void* ownPtrs[4]; |
-#if ENABLE(OILPAN) |
- Persistent<void*> persistentHandles[2]; |
- void* refPtrs[2]; |
-#else |
- void* refPtrs[4]; |
-#endif |
- |
- FillLayer fillLayers; |
- NinePieceImage ninePieces; |
- FloatSize floatSize; |
- Length lengths; |
- |
- StyleColor styleColors[8]; |
- |
- Vector<String> m_callbackSelectors; |
- |
- StyleContentAlignmentData contentAlignmentData[2]; |
- StyleSelfAlignmentData selfAlignmentData[4]; |
- |
- unsigned m_bitFields[2]; |
-}; |
- |
-static_assert(sizeof(StyleRareNonInheritedData) == sizeof(SameSizeStyleRareNonInheritedData), "StyleRareNonInheritedData_should_stay_small"); |
+ASSERT_SIZE(StyleRareNonInheritedData, 312, 400); |
StyleRareNonInheritedData::StyleRareNonInheritedData() |
: opacity(ComputedStyle::initialOpacity()) |