X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Fdom%2FQualifiedName.h;h=961fd6c84e348bf9a60f8f8ac9eb2a28c0f71b60;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=46d4ad8cd3ab638d5222159b2c4514586e961af4;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/dom/QualifiedName.h b/src/third_party/WebKit/Source/core/dom/QualifiedName.h index 46d4ad8..961fd6c 100644 --- a/src/third_party/WebKit/Source/core/dom/QualifiedName.h +++ b/src/third_party/WebKit/Source/core/dom/QualifiedName.h @@ -26,7 +26,7 @@ #include "wtf/RefCounted.h" #include "wtf/text/AtomicString.h" -namespace WebCore { +namespace blink { struct QualifiedNameComponents { StringImpl* m_prefix; @@ -98,9 +98,6 @@ public: 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; } @@ -146,10 +143,8 @@ private: RefPtr 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(); } @@ -177,19 +172,19 @@ struct QualifiedNameHash { static const bool safeToCompareToEmptyOrDeleted = false; }; -} +} // namespace blink namespace WTF { template struct DefaultHash; - template<> struct DefaultHash { - typedef WebCore::QualifiedNameHash Hash; + template<> struct DefaultHash { + typedef blink::QualifiedNameHash Hash; }; - template<> struct HashTraits : SimpleClassHashTraits { + template<> struct HashTraits : SimpleClassHashTraits { static const bool emptyValueIsZero = false; - static WebCore::QualifiedName emptyValue() { return WebCore::QualifiedName::null(); } + static blink::QualifiedName emptyValue() { return blink::QualifiedName::null(); } }; }