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

Unified Diff: Source/web/WebElement.cpp

Issue 357033002: Remove attributeCount() / attributeAt() API from Element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Clean up Created 6 years, 6 months 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
« no previous file with comments | « Source/core/inspector/DOMPatchSupport.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebElement.cpp
diff --git a/Source/web/WebElement.cpp b/Source/web/WebElement.cpp
index 4d097a71e529c35937d32739e1d6ebf481985480..6a65f179a2b6a2f089681e6c2ac8a2b8206a4778 100644
--- a/Source/web/WebElement.cpp
+++ b/Source/web/WebElement.cpp
@@ -105,7 +105,7 @@ unsigned WebElement::attributeCount() const
{
if (!constUnwrap<Element>()->hasAttributes())
return 0;
- return constUnwrap<Element>()->attributeCount();
+ return constUnwrap<Element>()->attributes().size();
}
WebNode WebElement::shadowRoot() const
@@ -120,14 +120,14 @@ WebString WebElement::attributeLocalName(unsigned index) const
{
if (index >= attributeCount())
return WebString();
- return constUnwrap<Element>()->attributeAt(index).localName();
+ return constUnwrap<Element>()->attributes().at(index).localName();
}
WebString WebElement::attributeValue(unsigned index) const
{
if (index >= attributeCount())
return WebString();
- return constUnwrap<Element>()->attributeAt(index).value();
+ return constUnwrap<Element>()->attributes().at(index).value();
}
WebString WebElement::innerText()
« no previous file with comments | « Source/core/inspector/DOMPatchSupport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698