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

Unified Diff: Source/core/dom/ElementData.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/css/StyleRule.cpp ('k') | Source/core/dom/ElementRareData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementData.cpp
diff --git a/Source/core/dom/ElementData.cpp b/Source/core/dom/ElementData.cpp
index 0dd820cbabc7ff17279014603ea6c23fc90a7ff4..0c850d7354bac52f90a012da5dc8d9f80d1f82b6 100644
--- a/Source/core/dom/ElementData.cpp
+++ b/Source/core/dom/ElementData.cpp
@@ -33,16 +33,12 @@
#include "core/css/StylePropertySet.h"
#include "core/dom/QualifiedName.h"
+#include "wtf/SizeAssertions.h"
#include "wtf/Vector.h"
namespace blink {
-struct SameSizeAsElementData : public RefCountedWillBeGarbageCollectedFinalized<SameSizeAsElementData> {
- unsigned bitfield;
- void* pointers[3];
-};
-
-static_assert(sizeof(ElementData) == sizeof(SameSizeAsElementData), "ElementData should stay small");
+ASSERT_SIZE(ElementData, 20, 32);
static size_t sizeForShareableElementDataWithAttributeCount(unsigned count)
{
« no previous file with comments | « Source/core/css/StyleRule.cpp ('k') | Source/core/dom/ElementRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698