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

Unified Diff: third_party/WebKit/Source/core/page/Page.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: Load the table of visited links asynchronously and inform render about finish loading process. Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index 2377b940add2cccf43103e6a8f9599ac1b52cbfb..759a658e2f2366b2ec34fb6a85843c04dd2b96c4 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -343,12 +343,12 @@ void Page::resetDeviceColorProfile()
RuntimeEnabledFeatures::setImageColorProfilesEnabled(false);
}
-void Page::allVisitedStateChanged()
+void Page::allVisitedStateChanged(bool invalidateVisitedLinkHashes)
{
for (const Page* page : ordinaryPages()) {
for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().traverseNext()) {
if (frame->isLocalFrame())
- toLocalFrame(frame)->document()->visitedLinkState().invalidateStyleForAllLinks();
+ toLocalFrame(frame)->document()->visitedLinkState().invalidateStyleForAllLinks(invalidateVisitedLinkHashes);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698