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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp

Issue 2527353002: Phase II Step 3: Reload LoFi/placeholder images via new ImageResource
Patch Set: Use startLoad() again to avoid re-applying modifications to ResourceRequest on reload Created 3 years, 9 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/platform/loader/fetch/ResourceLoader.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp
index 3356215059068e9164743a810896f1a82824418c..7634495dfae5b06777cb32614f23eb7514a93452 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp
@@ -416,6 +416,11 @@ void ResourceLoader::didFinishLoadingFirstPartInMultipart() {
ResourceFetcher::DidFinishFirstPartInMultipart);
}
+void ResourceLoader::reloadIfLoFiOrPlaceholderImage(Resource* resource) {
+ resource->reloadIfLoFiOrPlaceholderImage(m_fetcher.get(),
+ Resource::kReloadIfNeeded);
+}
+
void ResourceLoader::didFinishLoading(double finishTime,
int64_t encodedDataLength,
int64_t encodedBodyLength) {

Powered by Google App Engine
This is Rietveld 408576698