Index: Source/core/layout/LayoutText.cpp |
diff --git a/Source/core/layout/LayoutText.cpp b/Source/core/layout/LayoutText.cpp |
index 438d88c07c78d4e4f1d2093ff74752d6ba115b99..39bc55f6d32457a79e8b961df37ee85494c36be8 100644 |
--- a/Source/core/layout/LayoutText.cpp |
+++ b/Source/core/layout/LayoutText.cpp |
@@ -46,6 +46,7 @@ |
#include "platform/text/BidiResolver.h" |
#include "platform/text/TextBreakIterator.h" |
#include "platform/text/TextRunIterator.h" |
+#include "wtf/SizeAssertions.h" |
#include "wtf/text/CharacterNames.h" |
#include "wtf/text/StringBuffer.h" |
#include "wtf/text/StringBuilder.h" |
@@ -55,14 +56,7 @@ using namespace Unicode; |
namespace blink { |
-struct SameSizeAsLayoutText : public LayoutObject { |
- uint32_t bitfields : 16; |
- float widths[4]; |
- String text; |
- void* pointers[2]; |
-}; |
- |
-static_assert(sizeof(LayoutText) == sizeof(SameSizeAsLayoutText), "LayoutText should stay small"); |
+ASSERT_SIZE(LayoutText, sizeof(LayoutObject) + 32, sizeof(LayoutObject) + 48); |
class SecureTextTimer; |
typedef HashMap<LayoutText*, SecureTextTimer*> SecureTextTimerMap; |