Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: third_party/WebKit/Source/core/dom/VisitedLinkState.cpp

Issue 1689873004: Invalidate :-webkit-any-link for visited state changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698