#include "wtf/RefCounted.h"
#include "wtf/text/AtomicString.h"
-namespace WebCore {
+namespace blink {
struct QualifiedNameComponents {
StringImpl* m_prefix;
QualifiedName(const AtomicString& prefix, const AtomicString& localName, const AtomicString& namespaceURI);
~QualifiedName();
-#ifdef QNAME_DEFAULT_CONSTRUCTOR
- QualifiedName() { }
-#endif
QualifiedName(const QualifiedName& other) : m_impl(other.m_impl) { }
const QualifiedName& operator=(const QualifiedName& other) { m_impl = other.m_impl; return *this; }
RefPtr<QualifiedNameImpl> m_impl;
};
-#ifndef WEBCORE_QUALIFIEDNAME_HIDE_GLOBALS
-extern const QualifiedName anyName;
+extern const QualifiedName& anyName;
inline const QualifiedName& anyQName() { return anyName; }
-#endif
inline bool operator==(const AtomicString& a, const QualifiedName& q) { return a == q.localName(); }
inline bool operator!=(const AtomicString& a, const QualifiedName& q) { return a != q.localName(); }
static const bool safeToCompareToEmptyOrDeleted = false;
};
-}
+} // namespace blink
namespace WTF {
template<typename T> struct DefaultHash;
- template<> struct DefaultHash<WebCore::QualifiedName> {
- typedef WebCore::QualifiedNameHash Hash;
+ template<> struct DefaultHash<blink::QualifiedName> {
+ typedef blink::QualifiedNameHash Hash;
};
- template<> struct HashTraits<WebCore::QualifiedName> : SimpleClassHashTraits<WebCore::QualifiedName> {
+ template<> struct HashTraits<blink::QualifiedName> : SimpleClassHashTraits<blink::QualifiedName> {
static const bool emptyValueIsZero = false;
- static WebCore::QualifiedName emptyValue() { return WebCore::QualifiedName::null(); }
+ static blink::QualifiedName emptyValue() { return blink::QualifiedName::null(); }
};
}