Index: Source/core/dom/VisitedLinkState.cpp |
diff --git a/Source/core/dom/VisitedLinkState.cpp b/Source/core/dom/VisitedLinkState.cpp |
index d1342431a93f138cdd3c45b4a6527ff135e4f65f..1973511f953a4b95c2c20ef05800cc5dc82a9b2d 100644 |
--- a/Source/core/dom/VisitedLinkState.cpp |
+++ b/Source/core/dom/VisitedLinkState.cpp |
@@ -49,7 +49,7 @@ static inline const AtomicString& linkAttribute(const Element& element) |
static inline LinkHash linkHashForElement(const Element& element, const AtomicString& attribute = AtomicString()) |
{ |
ASSERT(attribute.isNull() || linkAttribute(element) == attribute); |
- if (element.hasTagName(HTMLNames::aTag)) |
+ if (isHTMLAnchorElement(element)) |
return toHTMLAnchorElement(element).visitedLinkHash(); |
return visitedLinkHash(element.document().baseURL(), attribute.isNull() ? linkAttribute(element) : attribute); |
} |