| Index: Source/core/xml/parser/XMLDocumentParser.cpp
|
| diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| index e2738240ce8ca06b1d335f98474a90717198049c..7dc6a6ba07062af259058779ead7e93ec3d0845e 100644
|
| --- a/Source/core/xml/parser/XMLDocumentParser.cpp
|
| +++ b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| @@ -822,12 +822,11 @@ XMLDocumentParser::XMLDocumentParser(DocumentFragment* fragment, Element* parent
|
| for (; !elemStack.isEmpty(); elemStack.removeLast()) {
|
| Element* element = elemStack.last();
|
| AttributeCollection attributes = element->attributes();
|
| - AttributeCollection::iterator end = attributes.end();
|
| - for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) {
|
| - if (it->localName() == xmlnsAtom)
|
| - m_defaultNamespaceURI = it->value();
|
| - else if (it->prefix() == xmlnsAtom)
|
| - m_prefixToNamespaceMap.set(it->localName(), it->value());
|
| + for (auto& attribute : attributes) {
|
| + if (attribute.localName() == xmlnsAtom)
|
| + m_defaultNamespaceURI = attribute.value();
|
| + else if (attribute.prefix() == xmlnsAtom)
|
| + m_prefixToNamespaceMap.set(attribute.localName(), attribute.value());
|
| }
|
| }
|
|
|
|
|