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

Unified Diff: Source/core/layout/LayoutBlock.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/FloatingObjects.cpp ('k') | Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBlock.cpp
diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp
index ba5a7b87813f48fd46c34dd56f5a9a42e945c699..b75fac676f8c7a25a56bc653f821e6af4833a8dd 100644
--- a/Source/core/layout/LayoutBlock.cpp
+++ b/Source/core/layout/LayoutBlock.cpp
@@ -70,6 +70,7 @@
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/geometry/FloatQuad.h"
#include "platform/geometry/TransformState.h"
+#include "wtf/SizeAssertions.h"
#include "wtf/StdLibExtras.h"
#include "wtf/TemporaryChange.h"
@@ -80,13 +81,7 @@ namespace blink {
using namespace HTMLNames;
-struct SameSizeAsLayoutBlock : public LayoutBox {
- LayoutObjectChildList children;
- LineBoxList lineBoxes;
- uint32_t bitfields;
-};
-
-static_assert(sizeof(LayoutBlock) == sizeof(SameSizeAsLayoutBlock), "LayoutBlock should stay small");
+ASSERT_SIZE(LayoutBlock, sizeof(LayoutBox) + 20, sizeof(LayoutBox) + 40);
// This map keeps track of the positioned objects associated with a containing
// block.
« no previous file with comments | « Source/core/layout/FloatingObjects.cpp ('k') | Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698