Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 290f998146c07346171f9e3a57a6e38c9eda8ce4..0370b7c2b562b06e02ea780f080b02b447e67da3 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -1187,8 +1187,8 @@ const AtomicString& Element::locateNamespacePrefix(const AtomicString& namespace |
return prefix(); |
AttributeCollection attributes = this->attributes(); |
- AttributeCollection::const_iterator end = attributes.end(); |
- for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) { |
+ AttributeCollection::iterator end = attributes.end(); |
+ for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) { |
if (it->prefix() == xmlnsAtom && it->value() == namespaceToLocate) |
return it->localName(); |
} |
@@ -2962,8 +2962,8 @@ void Element::detachAllAttrNodesFromElement() |
ASSERT(list); |
AttributeCollection attributes = elementData()->attributes(); |
- AttributeCollection::const_iterator end = attributes.end(); |
- for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) { |
+ AttributeCollection::iterator end = attributes.end(); |
+ for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) { |
if (RefPtrWillBeRawPtr<Attr> attrNode = findAttrNodeInList(*list, it->name())) |
attrNode->detachFromElementWithValue(it->value()); |
} |
@@ -3030,8 +3030,8 @@ void Element::cloneAttributesFromElement(const Element& other) |
m_elementData = other.m_elementData->makeUniqueCopy(); |
AttributeCollection attributes = m_elementData->attributes(); |
- AttributeCollection::const_iterator end = attributes.end(); |
- for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) |
+ AttributeCollection::iterator end = attributes.end(); |
+ for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) |
attributeChangedFromParserOrByCloning(it->name(), it->value(), ModifiedByCloning); |
} |