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

Unified Diff: Source/core/dom/custom/CustomElementDescriptorHash.h

Issue 1304043002: Make classes and structures in core/dom fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
Index: Source/core/dom/custom/CustomElementDescriptorHash.h
diff --git a/Source/core/dom/custom/CustomElementDescriptorHash.h b/Source/core/dom/custom/CustomElementDescriptorHash.h
index a8f7082babe033b268ab7af9a2e9151b85fc24ff..16ab401aed4950c1f7242691ea2b39ffa14e43f9 100644
--- a/Source/core/dom/custom/CustomElementDescriptorHash.h
+++ b/Source/core/dom/custom/CustomElementDescriptorHash.h
@@ -32,6 +32,7 @@
#define CustomElementDescriptorHash_h
#include "core/dom/custom/CustomElementDescriptor.h"
+#include "wtf/Allocator.h"
#include "wtf/HashFunctions.h"
#include "wtf/HashTraits.h"
#include "wtf/text/AtomicStringHash.h"
@@ -39,6 +40,7 @@
namespace blink {
struct CustomElementDescriptorHash {
+ STATIC_ONLY(CustomElementDescriptorHash);
static unsigned hash(const CustomElementDescriptor& descriptor)
{
return WTF::pairIntHash(AtomicStringHash::hash(descriptor.type()), WTF::pairIntHash(AtomicStringHash::hash(descriptor.namespaceURI()), AtomicStringHash::hash(descriptor.localName())));
@@ -58,6 +60,7 @@ namespace WTF {
template<>
struct HashTraits<blink::CustomElementDescriptor> : SimpleClassHashTraits<blink::CustomElementDescriptor> {
+ STATIC_ONLY(HashTraits);
static const bool emptyValueIsZero = HashTraits<AtomicString>::emptyValueIsZero;
};
« no previous file with comments | « Source/core/dom/custom/CustomElementCallbackQueue.h ('k') | Source/core/dom/custom/CustomElementException.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698