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

Unified Diff: Source/core/layout/FloatingObjects.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/html/parser/CompactHTMLToken.cpp ('k') | Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/FloatingObjects.cpp
diff --git a/Source/core/layout/FloatingObjects.cpp b/Source/core/layout/FloatingObjects.cpp
index 28dc9405943cc3776810897169ae25e089a94faa..aaf383f134b6b78a86f45c9bbf4f4c47633959b9 100644
--- a/Source/core/layout/FloatingObjects.cpp
+++ b/Source/core/layout/FloatingObjects.cpp
@@ -28,19 +28,13 @@
#include "core/layout/LayoutBox.h"
#include "core/layout/LayoutView.h"
#include "core/layout/shapes/ShapeOutsideInfo.h"
+#include "wtf/SizeAssertions.h"
using namespace WTF;
namespace blink {
-struct SameSizeAsFloatingObject {
- void* pointers[2];
- LayoutRect rect;
- int paginationStrut;
- uint32_t bitfields : 8;
-};
-
-static_assert(sizeof(FloatingObject) == sizeof(SameSizeAsFloatingObject), "FloatingObject should stay small");
+ASSERT_SIZE(FloatingObject, 32, 40);
FloatingObject::FloatingObject(LayoutBox* layoutObject)
: m_layoutObject(layoutObject)
« no previous file with comments | « Source/core/html/parser/CompactHTMLToken.cpp ('k') | Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698