Index: Source/core/dom/NamedNodeMap.cpp |
diff --git a/Source/core/dom/NamedNodeMap.cpp b/Source/core/dom/NamedNodeMap.cpp |
index 91da44c0411ca1f66f5c80da6be3baf03463a128..09808b8895f6302d80391d9c95648d193f71f272 100644 |
--- a/Source/core/dom/NamedNodeMap.cpp |
+++ b/Source/core/dom/NamedNodeMap.cpp |
@@ -59,7 +59,7 @@ PassRefPtrWillBeRawPtr<Node> NamedNodeMap::getNamedItemNS(const AtomicString& na |
PassRefPtrWillBeRawPtr<Node> NamedNodeMap::removeNamedItem(const AtomicString& name, ExceptionState& exceptionState) |
{ |
- size_t index = m_element->hasAttributes() ? m_element->getAttributeItemIndex(name, m_element->shouldIgnoreAttributeCase()) : kNotFound; |
+ size_t index = m_element->hasAttributes() ? m_element->findAttributeIndexByName(name, m_element->shouldIgnoreAttributeCase()) : kNotFound; |
if (index == kNotFound) { |
exceptionState.throwDOMException(NotFoundError, "No item with name '" + name + "' was found."); |
return nullptr; |
@@ -69,7 +69,7 @@ PassRefPtrWillBeRawPtr<Node> NamedNodeMap::removeNamedItem(const AtomicString& n |
PassRefPtrWillBeRawPtr<Node> NamedNodeMap::removeNamedItemNS(const AtomicString& namespaceURI, const AtomicString& localName, ExceptionState& exceptionState) |
{ |
- size_t index = m_element->hasAttributes() ? m_element->getAttributeItemIndex(QualifiedName(nullAtom, localName, namespaceURI)) : kNotFound; |
+ size_t index = m_element->hasAttributes() ? m_element->findAttributeIndexByName(QualifiedName(nullAtom, localName, namespaceURI)) : kNotFound; |
if (index == kNotFound) { |
exceptionState.throwDOMException(NotFoundError, "No item with name '" + namespaceURI + "::" + localName + "' was found."); |
return nullptr; |
@@ -102,7 +102,7 @@ PassRefPtrWillBeRawPtr<Node> NamedNodeMap::item(unsigned index) const |
{ |
if (index >= length()) |
return nullptr; |
- return m_element->ensureAttr(m_element->attributeItem(index).name()); |
+ return m_element->ensureAttr(m_element->attributeAt(index).name()); |
} |
size_t NamedNodeMap::length() const |