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

Unified Diff: Source/core/css/CSSFontFaceSrcValue.cpp

Issue 313043002: Notify DevTools about cached resources when stylesheet is restored. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFontFaceSrcValue.cpp
diff --git a/Source/core/css/CSSFontFaceSrcValue.cpp b/Source/core/css/CSSFontFaceSrcValue.cpp
index f44db9ff4a1753929d7e26a6b175382e54c894b8..cd08bf40b0df939343166bde90eb6295972bd478 100644
--- a/Source/core/css/CSSFontFaceSrcValue.cpp
+++ b/Source/core/css/CSSFontFaceSrcValue.cpp
@@ -124,6 +124,7 @@ void CSSFontFaceSrcValue::restoreCachedResourceIfNeeded(Document* document)
return;
FetchRequest request(ResourceRequest(resourceURL), FetchInitiatorTypeNames::css);
+ document->fetcher()->notifyLoadedFromMemoryCache(m_fetched.get());
Nate Chapin 2014/06/04 16:03:37 Why not call this in requestLoadStarted() instad o
eustas 2014/06/05 07:32:20 I've tried to preserve existing workflow. Here is
document->fetcher()->requestLoadStarted(m_fetched.get(), request, ResourceFetcher::ResourceLoadingFromCache);
}
« no previous file with comments | « no previous file | Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698