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

Unified Diff: Source/core/html/HTMLInputElement.cpp

Issue 150103007: Use fastGetAttribute in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more instances 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
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 5a4d9f968592635159934403814f0f676f48770f..7f508b184eac5a307215435b9e139d9666dfb8e4 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -798,9 +798,9 @@ String HTMLInputElement::altText() const
String alt = fastGetAttribute(altAttr);
// fall back to title attribute
if (alt.isNull())
- alt = getAttribute(titleAttr);
+ alt = fastGetAttribute(titleAttr);
if (alt.isNull())
- alt = getAttribute(valueAttr);
+ alt = fastGetAttribute(valueAttr);
if (alt.isEmpty())
alt = locale().queryString(blink::WebLocalizedString::InputElementAltText);
return alt;

Powered by Google App Engine
This is Rietveld 408576698