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

Unified Diff: Source/core/layout/LayoutInline.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/layout/LayoutBlockFlow.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutInline.cpp
diff --git a/Source/core/layout/LayoutInline.cpp b/Source/core/layout/LayoutInline.cpp
index a72248614be36d9b406d346c03ac60e93da8ad2b..f1ddfb8c3c9dd724458570d9c29ffd81b9bd0e7a 100644
--- a/Source/core/layout/LayoutInline.cpp
+++ b/Source/core/layout/LayoutInline.cpp
@@ -42,16 +42,11 @@
#include "platform/geometry/FloatQuad.h"
#include "platform/geometry/Region.h"
#include "platform/geometry/TransformState.h"
+#include "wtf/SizeAssertions.h"
namespace blink {
-struct SameSizeAsLayoutInline : public LayoutBoxModelObject {
- virtual ~SameSizeAsLayoutInline() { }
- LayoutObjectChildList m_children;
- LineBoxList m_lineBoxes;
-};
-
-static_assert(sizeof(LayoutInline) == sizeof(SameSizeAsLayoutInline), "LayoutInline should stay small");
+ASSERT_SIZE(LayoutInline, sizeof(LayoutBoxModelObject) + 16, sizeof(LayoutBoxModelObject) + 32);
LayoutInline::LayoutInline(Element* element)
: LayoutBoxModelObject(element)
« no previous file with comments | « Source/core/layout/LayoutBlockFlow.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698