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

Unified Diff: third_party/WebKit/Source/core/loader/resource/ImageResource.h

Issue 2797993007: Show image placeholders on dimension decode error (Closed)
Patch Set: tryjob Created 3 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
Index: third_party/WebKit/Source/core/loader/resource/ImageResource.h
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResource.h b/third_party/WebKit/Source/core/loader/resource/ImageResource.h
index fbc4bf16ee4917f4794ecd6fe8d88e4349b4624a..bc687fc524e305b97ac93b1255b43abc37c9a414 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResource.h
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResource.h
@@ -163,6 +163,11 @@ class CORE_EXPORT ImageResource final
// Do not show or reload placeholder.
kDoNotReloadPlaceholder,
+ // Show placeholder, and do not reload. The original image will still be
+ // loaded and shown if the image is explicitly reloaded, e.g. when
+ // ReloadIfLoFiOrPlaceholderImage is called with kReloadAlways.
+ kShowAndDoNotReloadPlaceholder,
+
// Do not show placeholder, reload only when decode error occurs.
kReloadPlaceholderOnDecodeError,

Powered by Google App Engine
This is Rietveld 408576698