| 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()
|
| {
|
|
|