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

Unified Diff: Source/core/svg/GradientAttributes.h

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

Powered by Google App Engine
This is Rietveld 408576698