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

Unified Diff: Source/web/WebElement.cpp

Issue 180723006: Have ElementData::attributeItem() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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/xml/parser/XMLDocumentParser.cpp ('k') | Source/web/WebPageSerializerImpl.cpp » ('j') | 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 1fac295b3eadad7cf3a5516c2f668103163fb15f..2130461b8a37572ded80a06cccb6f38d7d24e5e5 100644
--- a/Source/web/WebElement.cpp
+++ b/Source/web/WebElement.cpp
@@ -125,14 +125,14 @@ WebString WebElement::attributeLocalName(unsigned index) const
{
if (index >= attributeCount())
return WebString();
- return constUnwrap<Element>()->attributeItem(index)->localName();
+ return constUnwrap<Element>()->attributeItem(index).localName();
}
WebString WebElement::attributeValue(unsigned index) const
{
if (index >= attributeCount())
return WebString();
- return constUnwrap<Element>()->attributeItem(index)->value();
+ return constUnwrap<Element>()->attributeItem(index).value();
}
WebString WebElement::innerText()
« no previous file with comments | « Source/core/xml/parser/XMLDocumentParser.cpp ('k') | Source/web/WebPageSerializerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698