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

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

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase + update Created 3 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/loader/ImageLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/ImageLoader.cpp b/third_party/WebKit/Source/core/loader/ImageLoader.cpp
index 9e5ab6ae73e1eef23563c275bf583e54215f7e3b..2c5e6d44e0882405dd92432a262169acf9ff3e46 100644
--- a/third_party/WebKit/Source/core/loader/ImageLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/ImageLoader.cpp
@@ -490,6 +490,11 @@ void ImageLoader::ImageNotifyFinished(ImageResourceContent* resource) {
ToSVGImage(image_->GetImage())
->UpdateUseCounters(GetElement()->GetDocument());
+ if (isHTMLImageElement(GetElement())) {
pdr. 2017/05/18 03:20:10 Nit: put this in HTMLImageLoader::ImageNotifyFinis
vmpstr 2017/05/18 18:51:13 Done.
+ toHTMLImageElement(GetElement())
+ ->ImageNotifyFinished(!resource->ErrorOccurred());
+ }
+
if (!has_pending_load_event_)
return;

Powered by Google App Engine
This is Rietveld 408576698