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

Unified Diff: Source/platform/Length.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/svg/GradientAttributes.h ('k') | Source/platform/fonts/FontDescription.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/svg/GradientAttributes.h ('k') | Source/platform/fonts/FontDescription.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698