Index: Source/core/dom/QualifiedName.h |
diff --git a/Source/core/dom/QualifiedName.h b/Source/core/dom/QualifiedName.h |
index a0266fca9bfcabd28bc12192fb29befb9d4c5e2a..0e48ab795b37d78d8412be7fbf1108f1d229128b 100644 |
--- a/Source/core/dom/QualifiedName.h |
+++ b/Source/core/dom/QualifiedName.h |
@@ -22,6 +22,7 @@ |
#define QualifiedName_h |
#include "core/CoreExport.h" |
+#include "wtf/Allocator.h" |
#include "wtf/HashTableDeletedValueType.h" |
#include "wtf/HashTraits.h" |
#include "wtf/RefCounted.h" |
@@ -30,6 +31,7 @@ |
namespace blink { |
struct QualifiedNameComponents { |
+ DISALLOW_ALLOCATION(); |
StringImpl* m_prefix; |
StringImpl* m_localName; |
StringImpl* m_namespace; |
@@ -38,6 +40,7 @@ struct QualifiedNameComponents { |
// This struct is used to pass data between QualifiedName and the QNameTranslator. |
// For hashing and equality only the QualifiedNameComponents fields are used. |
struct QualifiedNameData { |
+ DISALLOW_ALLOCATION(); |
QualifiedNameComponents m_components; |
bool m_isStatic; |
}; |
@@ -153,6 +156,7 @@ inline unsigned hashComponents(const QualifiedNameComponents& buf) |
} |
struct QualifiedNameHash { |
+ STATIC_ONLY(QualifiedNameHash); |
static unsigned hash(const QualifiedName& name) { return hash(name.impl()); } |
static unsigned hash(const QualifiedName::QualifiedNameImpl* name) |