Index: third_party/WebKit/Source/core/dom/VisitedLinkState.cpp |
diff --git a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp |
index 6adbb08deeed12da90073a142646ba40adaaef21..ec29db279626c7e7aa4dd35142b18189fad20699 100644 |
--- a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp |
+++ b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp |
@@ -68,6 +68,7 @@ void VisitedLinkState::invalidateStyleForAllLinks(bool invalidateVisitedLinkHash |
toHTMLAnchorElement(node).invalidateCachedVisitedLinkHash(); |
toElement(node).pseudoStateChanged(CSSSelector::PseudoLink); |
toElement(node).pseudoStateChanged(CSSSelector::PseudoVisited); |
+ toElement(node).pseudoStateChanged(CSSSelector::PseudoAnyLink); |
} |
} |
} |
@@ -80,6 +81,7 @@ void VisitedLinkState::invalidateStyleForLink(LinkHash linkHash) |
if (node.isLink() && linkHashForElement(toElement(node)) == linkHash) { |
toElement(node).pseudoStateChanged(CSSSelector::PseudoLink); |
toElement(node).pseudoStateChanged(CSSSelector::PseudoVisited); |
+ toElement(node).pseudoStateChanged(CSSSelector::PseudoAnyLink); |
} |
} |
} |