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

Unified Diff: Source/core/layout/LayoutTableCell.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/LayoutObject.cpp ('k') | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutTableCell.cpp
diff --git a/Source/core/layout/LayoutTableCell.cpp b/Source/core/layout/LayoutTableCell.cpp
index 9a8e4481d00bad32a33127785e37d93eef08260f..26f097f978ca82ce9f0f51e00ad87081718a0a49 100644
--- a/Source/core/layout/LayoutTableCell.cpp
+++ b/Source/core/layout/LayoutTableCell.cpp
@@ -36,18 +36,14 @@
#include "core/style/CollapsedBorderValue.h"
#include "platform/geometry/FloatQuad.h"
#include "platform/geometry/TransformState.h"
+#include "wtf/SizeAssertions.h"
namespace blink {
using namespace HTMLNames;
-struct SameSizeAsLayoutTableCell : public LayoutBlockFlow {
- unsigned bitfields;
- int paddings[2];
-};
-
-static_assert(sizeof(LayoutTableCell) == sizeof(SameSizeAsLayoutTableCell), "LayoutTableCell should stay small");
-static_assert(sizeof(CollapsedBorderValue) == 8, "CollapsedBorderValue should stay small");
+ASSERT_SIZE(LayoutTableCell, sizeof(LayoutBlockFlow) + 12, sizeof(LayoutBlockFlow) + 16);
+ASSERT_SIZE(CollapsedBorderValue, 8, 8);
LayoutTableCell::LayoutTableCell(Element* element)
: LayoutBlockFlow(element)
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698