Lines Matching refs:element
40 static inline const AtomicString& linkAttribute(const Element& element)
42 ASSERT(element.isLink());
43 if (element.isHTMLElement())
44 return element.fastGetAttribute(HTMLNames::hrefAttr);
45 ASSERT(element.isSVGElement());
46 return element.getAttribute(XLinkNames::hrefAttr);
49 static inline LinkHash linkHashForElement(const Element& element, const AtomicString& attribute = AtomicString())
51 ASSERT(attribute.isNull() || linkAttribute(element) == attribute);
52 if (isHTMLAnchorElement(element))
53 return toHTMLAnchorElement(element).visitedLinkHash();
54 return visitedLinkHash(element.document().baseURL(), attribute.isNull() ? linkAttribute(element) : attribute);
82 EInsideLink VisitedLinkState::determineLinkStateSlowCase(const Element& element)
84 ASSERT(element.isLink());
86 ASSERT(document() == element.document());
88 const AtomicString& attribute = linkAttribute(element);
100 if (LinkHash hash = linkHashForElement(element, attribute)) {