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

Unified Diff: Source/core/style/ComputedStyle.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/layout/line/RootInlineBox.cpp ('k') | Source/core/style/FillLayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/ComputedStyle.cpp
diff --git a/Source/core/style/ComputedStyle.cpp b/Source/core/style/ComputedStyle.cpp
index 342cd0056ccd950281007948e88379902baa3259..8c5cc0431ff57c379fa3d594e8aee7b9762618dc 100644
--- a/Source/core/style/ComputedStyle.cpp
+++ b/Source/core/style/ComputedStyle.cpp
@@ -46,33 +46,14 @@
#include "platform/transforms/ScaleTransformOperation.h"
#include "platform/transforms/TranslateTransformOperation.h"
#include "wtf/MathExtras.h"
+#include "wtf/SizeAssertions.h"
#include <algorithm>
namespace blink {
-struct SameSizeAsBorderValue {
- RGBA32 m_color;
- unsigned m_width;
-};
-
-static_assert(sizeof(BorderValue) == sizeof(SameSizeAsBorderValue), "BorderValue should stay small");
-
-struct SameSizeAsComputedStyle : public RefCounted<SameSizeAsComputedStyle> {
- void* dataRefs[7];
- void* ownPtrs[1];
- void* dataRefSvgStyle;
-
- struct InheritedFlags {
- unsigned m_bitfields[2];
- } inherited_flags;
-
- struct NonInheritedFlags {
- unsigned m_bitfields[2];
- } noninherited_flags;
-};
-
-static_assert(sizeof(ComputedStyle) == sizeof(SameSizeAsComputedStyle), "ComputedStyle should stay small");
+ASSERT_SIZE(BorderValue, 8, 8);
+ASSERT_SIZE(ComputedStyle, 56, 96);
PassRefPtr<ComputedStyle> ComputedStyle::create()
{
« no previous file with comments | « Source/core/layout/line/RootInlineBox.cpp ('k') | Source/core/style/FillLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698