Index: Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp |
diff --git a/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp b/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp |
index dfb4dd5f01f54b3ccc1671a919c7f93def7d11df..2da0d1c16ba1eb697866612bc48d6a17a985bd22 100644 |
--- a/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp |
+++ b/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp |
@@ -33,6 +33,7 @@ |
#include "HTMLNames.h" |
#include "core/dom/Element.h" |
+#include "core/html/HTMLAreaElement.h" |
#include "core/html/HTMLInputElement.h" |
using namespace WebCore; |
@@ -45,7 +46,7 @@ bool elementHasLegalLinkAttribute(const Element* element, const QualifiedName& a |
if (attrName == srcAttr) |
return element->hasTagName(imgTag) || element->hasTagName(scriptTag) || element->hasTagName(iframeTag) || element->hasTagName(frameTag) || (element->hasTagName(inputTag) && toHTMLInputElement(element)->isImageButton()); |
if (attrName == hrefAttr) |
- return element->hasTagName(linkTag) || element->hasTagName(aTag) || element->hasTagName(areaTag); |
+ return element->hasTagName(linkTag) || element->hasTagName(aTag) || isHTMLAreaElement(element); |
if (attrName == actionAttr) |
return element->hasTagName(formTag); |
if (attrName == backgroundAttr) |