Index: Source/core/rendering/HitTestResult.cpp |
diff --git a/Source/core/rendering/HitTestResult.cpp b/Source/core/rendering/HitTestResult.cpp |
index ec11a7b613698da19404039e27a985903d8ad924..0803f9c90790df61b63aee991a7d094fc6d631e9 100644 |
--- a/Source/core/rendering/HitTestResult.cpp |
+++ b/Source/core/rendering/HitTestResult.cpp |
@@ -30,6 +30,7 @@ |
#include "core/dom/shadow/ShadowRoot.h" |
#include "core/editing/FrameSelection.h" |
#include "core/html/HTMLAnchorElement.h" |
+#include "core/html/HTMLAreaElement.h" |
#include "core/html/HTMLImageElement.h" |
#include "core/html/HTMLInputElement.h" |
#include "core/html/HTMLMediaElement.h" |
@@ -324,7 +325,7 @@ KURL HitTestResult::absoluteLinkURL() const |
return KURL(); |
AtomicString urlString; |
- if (m_innerURLElement->hasTagName(aTag) || m_innerURLElement->hasTagName(areaTag) || m_innerURLElement->hasTagName(linkTag)) |
+ if (m_innerURLElement->hasTagName(aTag) || isHTMLAreaElement(m_innerURLElement.get()) || m_innerURLElement->hasTagName(linkTag)) |
urlString = m_innerURLElement->getAttribute(hrefAttr); |
else if (m_innerURLElement->hasTagName(SVGNames::aTag)) |
urlString = m_innerURLElement->getAttribute(XLinkNames::hrefAttr); |