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

Unified Diff: Source/core/layout/line/InlineBox.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/PointerEventsHitRules.cpp ('k') | Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/InlineBox.cpp
diff --git a/Source/core/layout/line/InlineBox.cpp b/Source/core/layout/line/InlineBox.cpp
index 235682b56972ee2159f98d3b5bba02e41d7127e7..42462783f1a57581f1a582f9aa981ca7b9410f7b 100644
--- a/Source/core/layout/line/InlineBox.cpp
+++ b/Source/core/layout/line/InlineBox.cpp
@@ -29,6 +29,7 @@
#include "core/paint/PaintInfo.h"
#include "platform/fonts/FontMetrics.h"
#include "wtf/Partitions.h"
+#include "wtf/SizeAssertions.h"
#ifndef NDEBUG
#include <stdio.h>
@@ -36,18 +37,7 @@
namespace blink {
-struct SameSizeAsInlineBox {
- virtual ~SameSizeAsInlineBox() { }
- void* a[4];
- LayoutPoint b;
- LayoutUnit c;
- uint32_t d : 32;
-#if ENABLE(ASSERT)
- bool f;
-#endif
-};
-
-static_assert(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), "InlineBox should stay small");
+ASSERT_SIZE(InlineBox, 36, 56);
#if ENABLE(ASSERT)
« no previous file with comments | « Source/core/layout/PointerEventsHitRules.cpp ('k') | Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698