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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageLoader.cpp

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase 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/html/HTMLImageLoader.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLImageLoader.cpp b/third_party/WebKit/Source/core/html/HTMLImageLoader.cpp
index c25df5bfe06cdb3aaac9b73968c4e9d185a63f02..54827a9be3b1073447a509123cfabae7d7bb6776 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageLoader.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLImageLoader.cpp
@@ -75,6 +75,7 @@ void HTMLImageLoader::ImageNotifyFinished(ImageResourceContent*) {
bool load_error = cached_image->ErrorOccurred();
if (isHTMLImageElement(*element)) {
+ toHTMLImageElement(element)->ImageNotifyFinished(!load_error);
if (load_error)
toHTMLImageElement(element)->EnsureCollapsedOrFallbackContent();
else
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.idl ('k') | third_party/WebKit/Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698