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

Unified Diff: Source/core/style/FillLayer.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/ComputedStyle.cpp ('k') | Source/core/style/StyleBoxData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/FillLayer.cpp
diff --git a/Source/core/style/FillLayer.cpp b/Source/core/style/FillLayer.cpp
index 693e869a88109e0921a5f74f945f2a8efe6e5989..b0816f708c26144263605a56c9816edb34750e30 100644
--- a/Source/core/style/FillLayer.cpp
+++ b/Source/core/style/FillLayer.cpp
@@ -23,24 +23,11 @@
#include "core/style/FillLayer.h"
#include "core/style/DataEquivalency.h"
+#include "wtf/SizeAssertions.h"
namespace blink {
-struct SameSizeAsFillLayer {
- FillLayer* m_next;
-
- RefPtrWillBePersistent<StyleImage> m_image;
-
- Length m_xPosition;
- Length m_yPosition;
-
- LengthSize m_sizeLength;
-
- unsigned m_bitfields1;
- unsigned m_bitfields2;
-};
-
-static_assert(sizeof(FillLayer) == sizeof(SameSizeAsFillLayer), "FillLayer should stay small");
+ASSERT_SIZE(FillLayer, 48, 56);
FillLayer::FillLayer(EFillLayerType type, bool useInitialValues)
: m_next(0)
« no previous file with comments | « Source/core/style/ComputedStyle.cpp ('k') | Source/core/style/StyleBoxData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698