Index: Source/core/dom/VisitedLinkState.cpp |
diff --git a/Source/core/dom/VisitedLinkState.cpp b/Source/core/dom/VisitedLinkState.cpp |
index d6236d46a2db2119ff67c4f75f610ced0412099c..77e8fd1ea2eb087b3f827a4ee1046b1b7f52322d 100644 |
--- a/Source/core/dom/VisitedLinkState.cpp |
+++ b/Source/core/dom/VisitedLinkState.cpp |
@@ -50,16 +50,16 @@ inline static const AtomicString& linkAttribute(Element* element) |
inline static LinkHash linkHashForElement(Document* document, Element* element) |
{ |
- if (element->hasTagName(aTag)) |
- return static_cast<HTMLAnchorElement*>(element)->visitedLinkHash(); |
+ if (isHTMLAnchorElement(element)) |
+ return toHTMLAnchorElement(element)->visitedLinkHash(); |
return visitedLinkHash(document->baseURL(), linkAttribute(element)); |
} |
inline static LinkHash linkHashForElementWithAttribute(Document* document, Element* element, const AtomicString& attribute) |
{ |
ASSERT(linkAttribute(element) == attribute); |
- if (element->hasTagName(aTag)) |
- return static_cast<HTMLAnchorElement*>(element)->visitedLinkHash(); |
+ if (isHTMLAnchorElement(element)) |
+ return toHTMLAnchorElement(element)->visitedLinkHash(); |
return visitedLinkHash(document->baseURL(), attribute); |
} |