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

Unified Diff: Source/core/style/StyleRareNonInheritedData.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/StyleRareInheritedData.cpp ('k') | Source/core/svg/GradientAttributes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « Source/core/style/StyleRareInheritedData.cpp ('k') | Source/core/svg/GradientAttributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698