Index: Source/platform/Length.cpp |
diff --git a/Source/platform/Length.cpp b/Source/platform/Length.cpp |
index 3b5bdc1aa4da4dd34470238ea0987598e508ba95..63162422b18c79c3eca7db13ce43997ba1b2bd36 100644 |
--- a/Source/platform/Length.cpp |
+++ b/Source/platform/Length.cpp |
@@ -28,6 +28,7 @@ |
#include "platform/CalculationValue.h" |
#include "platform/animation/AnimationUtilities.h" |
#include "wtf/ASCIICType.h" |
+#include "wtf/SizeAssertions.h" |
#include "wtf/text/StringBuffer.h" |
#include "wtf/text/WTFString.h" |
@@ -35,6 +36,8 @@ using namespace WTF; |
namespace blink { |
+ASSERT_SIZE(Length, 8, 8); |
+ |
template<typename CharType> |
static unsigned splitLength(const CharType* data, unsigned length, unsigned& intLength, unsigned& doubleLength) |
{ |
@@ -242,10 +245,4 @@ bool Length::isCalculatedEqual(const Length& o) const |
return isCalculated() && (&calculationValue() == &o.calculationValue() || calculationValue() == o.calculationValue()); |
} |
-struct SameSizeAsLength { |
- int32_t value; |
- int32_t metaData; |
-}; |
-static_assert(sizeof(Length) == sizeof(SameSizeAsLength), "length should stay small"); |
- |
} // namespace blink |