| Index: Source/core/layout/line/InlineTextBox.cpp
|
| diff --git a/Source/core/layout/line/InlineTextBox.cpp b/Source/core/layout/line/InlineTextBox.cpp
|
| index 07cd166e67874b60f120cd73ac312126d1081e2e..d310fe0b69f34b8c60e10fe8a27827b648f7f6e2 100644
|
| --- a/Source/core/layout/line/InlineTextBox.cpp
|
| +++ b/Source/core/layout/line/InlineTextBox.cpp
|
| @@ -33,6 +33,7 @@
|
| #include "core/paint/InlineTextBoxPainter.h"
|
| #include "platform/fonts/FontCache.h"
|
| #include "platform/fonts/shaping/SimpleShaper.h"
|
| +#include "wtf/SizeAssertions.h"
|
| #include "wtf/Vector.h"
|
| #include "wtf/text/StringBuilder.h"
|
|
|
| @@ -40,13 +41,7 @@
|
|
|
| namespace blink {
|
|
|
| -struct SameSizeAsInlineTextBox : public InlineBox {
|
| - unsigned variables[1];
|
| - unsigned short variables2[2];
|
| - void* pointers[2];
|
| -};
|
| -
|
| -static_assert(sizeof(InlineTextBox) == sizeof(SameSizeAsInlineTextBox), "InlineTextBox should stay small");
|
| +ASSERT_SIZE(InlineTextBox, sizeof(InlineBox) + 16, sizeof(InlineBox) + 24);
|
|
|
| typedef WTF::HashMap<const InlineTextBox*, LayoutRect> InlineTextBoxOverflowMap;
|
| static InlineTextBoxOverflowMap* gTextBoxesWithOverflow;
|
|
|