| Index: Source/core/xml/XPathParser.cpp
|
| diff --git a/Source/core/xml/XPathParser.cpp b/Source/core/xml/XPathParser.cpp
|
| index 22578d452ec4f3077b37ea77ce07ad571fe2be03..3c6579f14273711343d9b1845d206285890a6993 100644
|
| --- a/Source/core/xml/XPathParser.cpp
|
| +++ b/Source/core/xml/XPathParser.cpp
|
| @@ -447,7 +447,7 @@ int Parser::lex(void* data)
|
| return tok.type;
|
| }
|
|
|
| -bool Parser::expandQName(const String& qName, String& localName, String& namespaceURI)
|
| +bool Parser::expandQName(const String& qName, AtomicString& localName, AtomicString& namespaceURI)
|
| {
|
| size_t colon = qName.find(':');
|
| if (colon != kNotFound) {
|
| @@ -456,9 +456,10 @@ bool Parser::expandQName(const String& qName, String& localName, String& namespa
|
| namespaceURI = m_resolver->lookupNamespaceURI(qName.left(colon));
|
| if (namespaceURI.isNull())
|
| return false;
|
| - localName = qName.substring(colon + 1);
|
| - } else
|
| - localName = qName;
|
| + localName = AtomicString(qName.substring(colon + 1));
|
| + } else {
|
| + localName = AtomicString(qName);
|
| + }
|
|
|
| return true;
|
| }
|
|
|