Index: Source/core/html/HTMLImageElement.cpp |
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp |
index 309c06602154c5653169ff3ecbf8be7c8b883e0a..511aa03cae9921b0aa6b8606395c5e9694030c71 100644 |
--- a/Source/core/html/HTMLImageElement.cpp |
+++ b/Source/core/html/HTMLImageElement.cpp |
@@ -182,8 +182,9 @@ const AtomicString& HTMLImageElement::altText() const |
// lets figure out the alt text.. magic stuff |
// http://www.w3.org/TR/1998/REC-html40-19980424/appendix/notes.html#altgen |
// also heavily discussed by Hixie on bugzilla |
- if (!getAttribute(altAttr).isNull()) |
- return getAttribute(altAttr); |
+ const AtomicString& alt = fastGetAttribute(altAttr); |
+ if (!alt.isNull()) |
+ return alt; |
// fall back to title attribute |
return getAttribute(titleAttr); |
Inactive
2014/02/13 16:03:43
Why don't we use fastGetAttribute for this one?
|
} |
@@ -320,7 +321,7 @@ bool HTMLImageElement::isURLAttribute(const Attribute& attribute) const |
const AtomicString& HTMLImageElement::alt() const |
{ |
- return getAttribute(altAttr); |
+ return fastGetAttribute(altAttr); |
} |
bool HTMLImageElement::draggable() const |