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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 2710113002: DO NOT SUBMIT really old prototype of sprite recognition for image replacement
Patch Set: Created 3 years, 10 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/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index b78888927b7e4e32fbf65f20c453d3e5a5db2026..872959726b70b4a3ec3575e11b216dbb9bc2e1a8 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -172,7 +172,10 @@ Resource* DocumentLoader::startPreload(Resource::Type type, FetchRequest& reques
Resource* resource = nullptr;
switch (type) {
case Resource::Image:
- resource = ImageResource::fetch(request, fetcher());
+ resource = ImageResource::fetch(request, fetcher(),
+ frame() && frame()->settings() && frame()->settings()->fetchImagePlaceholders()
+ ? ImageResource::PlaceholderRequestType::AllowPlaceholder
+ : ImageResource::PlaceholderRequestType::DisallowPlaceholder);
break;
case Resource::Script:
resource = ScriptResource::fetch(request, fetcher());
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.in ('k') | third_party/WebKit/Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698