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

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

Issue 1417943002: Load the table of visited links from database file asynchronously. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add extra comment and fix compilation error. Created 5 years 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 | « third_party/WebKit/Source/core/dom/VisitedLinkState.h ('k') | third_party/WebKit/Source/core/page/Page.h » ('j') | 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 51b1c75b0bf2193947f24ab8d4c6b03f7f8efb0d..6f0e1069158dcce3abb5bda335c7125ccde95df5 100644
--- a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
+++ b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
@@ -59,12 +59,14 @@ VisitedLinkState::VisitedLinkState(const Document& document)
{
}
-void VisitedLinkState::invalidateStyleForAllLinks()
+void VisitedLinkState::invalidateStyleForAllLinks(bool invalidateVisitedLinkHashes)
{
if (m_linksCheckedForVisitedState.isEmpty())
return;
for (Node& node : NodeTraversal::startsAt(document().firstChild())) {
if (node.isLink()) {
+ if (invalidateVisitedLinkHashes && isHTMLAnchorElement(node))
+ toHTMLAnchorElement(node).invalidateCachedVisitedLinkHash();
toElement(node).pseudoStateChanged(CSSSelector::PseudoLink);
toElement(node).pseudoStateChanged(CSSSelector::PseudoVisited);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/VisitedLinkState.h ('k') | third_party/WebKit/Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698