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

Unified Diff: Source/core/xml/XPathFunctions.cpp

Issue 387413003: Drop findAttribute*ByName() API from Element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/html/parser/HTMLConstructionSite.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathFunctions.cpp
diff --git a/Source/core/xml/XPathFunctions.cpp b/Source/core/xml/XPathFunctions.cpp
index 32a46eb9b2fe5145e5c15c5d650fa6a2abb1d4a2..9d5abff6d45d486fe1953e4076adc87ab727d483 100644
--- a/Source/core/xml/XPathFunctions.cpp
+++ b/Source/core/xml/XPathFunctions.cpp
@@ -603,7 +603,7 @@ Value FunLang::evaluate(EvaluationContext& context) const
if (node->isElementNode()) {
Element* element = toElement(node);
if (element->hasAttributes())
- languageAttribute = element->findAttributeByName(XMLNames::langAttr);
+ languageAttribute = element->attributes().find(XMLNames::langAttr);
}
if (languageAttribute)
break;
« no previous file with comments | « Source/core/html/parser/HTMLConstructionSite.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698