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

Unified Diff: Source/core/dom/QualifiedName.cpp

Issue 560613002: Shrink QualifiedNameImpl by 8 bytes on 64-bit platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add COMPILE_ASSERT Created 6 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/QualifiedName.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/QualifiedName.cpp
diff --git a/Source/core/dom/QualifiedName.cpp b/Source/core/dom/QualifiedName.cpp
index 264178ba1dbbab155c7f9f5e52648bb4b7f3238f..f669a905056d81aa85d66f813bf5d4ce63e56b40 100644
--- a/Source/core/dom/QualifiedName.cpp
+++ b/Source/core/dom/QualifiedName.cpp
@@ -34,6 +34,13 @@
namespace blink {
+struct SameSizeAsQualifiedNameImpl : public RefCounted<SameSizeAsQualifiedNameImpl> {
+ unsigned bitfield;
+ void* pointers[4];
+};
+
+COMPILE_ASSERT(sizeof(QualifiedName::QualifiedNameImpl) == sizeof(SameSizeAsQualifiedNameImpl), qualified_name_impl_should_stay_small);
+
static const int staticQualifiedNamesCount = HTMLNames::HTMLTagsCount + HTMLNames::HTMLAttrsCount
+ MathMLNames::MathMLTagsCount + MathMLNames::MathMLAttrsCount
+ SVGNames::SVGTagsCount + SVGNames::SVGAttrsCount
« no previous file with comments | « Source/core/dom/QualifiedName.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698