| 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;
|
| };
|
|
|
|
|