Index: Source/core/svg/GradientAttributes.h |
diff --git a/Source/core/svg/GradientAttributes.h b/Source/core/svg/GradientAttributes.h |
index 58dde97a329ca87dbc0d857c00d958a45332a60a..66e92134a30aee1dc8c9cc6305c8365a395b1cdd 100644 |
--- a/Source/core/svg/GradientAttributes.h |
+++ b/Source/core/svg/GradientAttributes.h |
@@ -22,6 +22,7 @@ |
#include "core/svg/SVGUnitTypes.h" |
#include "wtf/Allocator.h" |
+#include "wtf/SizeAssertions.h" |
namespace blink { |
@@ -86,14 +87,7 @@ private: |
unsigned m_stopsSet : 1; |
}; |
-struct SameSizeAsGradientAttributes { |
- DISALLOW_ALLOCATION(); |
- AffineTransform a; |
- Vector<Gradient::ColorStop> b; |
- unsigned c : 8; |
-}; |
- |
-static_assert(sizeof(GradientAttributes) == sizeof(SameSizeAsGradientAttributes), "GradientAttributes should stay small"); |
+ASSERT_SIZE(GradientAttributes, 64, 72); |
} // namespace blink |