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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 1976463003: Preload scan external CSS for @import (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actually include crasher fix Created 4 years, 7 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
Index: third_party/WebKit/Source/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index c62b7fb1291843ae64163f5957375fd33d5a6325..f85351d8efe969f3ec0c5a19d1fe1db33f79ce5a 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -675,10 +675,10 @@ static bool shouldSendCachedDataSynchronouslyForType(Resource::Type type)
return false;
}
-void Resource::willAddClientOrObserver()
+void Resource::willAddClientOrObserver(bool passive)
{
ASSERT(!isPurgeable());
- if (m_preloadResult == PreloadNotReferenced) {
+ if (!passive && m_preloadResult == PreloadNotReferenced) {
if (isLoaded())
m_preloadResult = PreloadReferencedWhileComplete;
else if (isLoading())
@@ -690,9 +690,9 @@ void Resource::willAddClientOrObserver()
memoryCache()->makeLive(this);
}
-void Resource::addClient(ResourceClient* client)
+void Resource::addClient(ResourceClient* client, bool passive)
{
- willAddClientOrObserver();
+ willAddClientOrObserver(passive);
if (!m_revalidatingRequest.isNull()) {
m_clients.add(client);

Powered by Google App Engine
This is Rietveld 408576698