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

Unified Diff: Source/core/dom/ElementRareData.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/dom/ElementData.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementRareData.cpp
diff --git a/Source/core/dom/ElementRareData.cpp b/Source/core/dom/ElementRareData.cpp
index 08934494c16d767e836bef33f315ebc46ac14930..333e6279d0ce11a9146dd5e9b7b80083f499f339 100644
--- a/Source/core/dom/ElementRareData.cpp
+++ b/Source/core/dom/ElementRareData.cpp
@@ -32,15 +32,11 @@
#include "core/dom/ElementRareData.h"
#include "core/style/ComputedStyle.h"
+#include "wtf/SizeAssertions.h"
namespace blink {
-struct SameSizeAsElementRareData : NodeRareData {
- short indices[2];
- LayoutSize sizeForResizing;
- IntSize scrollOffset;
- void* pointers[13];
-};
+ASSERT_SIZE(ElementRareData, 88, 152);
CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* ownerElement)
{
@@ -75,6 +71,4 @@ DEFINE_TRACE_AFTER_DISPATCH(ElementRareData)
NodeRareData::traceAfterDispatch(visitor);
}
-static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "ElementRareData should stay small");
-
} // namespace blink
« no previous file with comments | « Source/core/dom/ElementData.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698