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

Unified Diff: Source/core/xml/NativeXPathNSResolver.cpp

Issue 108543003: Consistently use AtomicString for namespaceURI / prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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/xml/NativeXPathNSResolver.cpp
diff --git a/Source/core/xml/NativeXPathNSResolver.cpp b/Source/core/xml/NativeXPathNSResolver.cpp
index 8ae8c04db12a3183ab9f8afbfa42a275d5d372af..cbe118aaa38059bbfe7aecb61ba791a5e8ca78ae 100644
--- a/Source/core/xml/NativeXPathNSResolver.cpp
+++ b/Source/core/xml/NativeXPathNSResolver.cpp
@@ -41,14 +41,14 @@ NativeXPathNSResolver::~NativeXPathNSResolver()
{
}
-String NativeXPathNSResolver::lookupNamespaceURI(const String& prefix)
+AtomicString NativeXPathNSResolver::lookupNamespaceURI(const String& prefix)
{
// This is not done by Node::lookupNamespaceURI as per the DOM3 Core spec,
// but the XPath spec says that we should do it for XPathNSResolver.
if (prefix == "xml")
return XMLNames::xmlNamespaceURI;
- return m_node ? m_node->lookupNamespaceURI(prefix) : String();
+ return m_node ? m_node->lookupNamespaceURI(prefix) : nullAtom;
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698