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

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

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: update Created 3 years, 8 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 e8ae4504733451c83cb94b70a27cc76fb6455d83..afa8a49a8c45a76e699ef606e56ee62bc92cdb80 100644
--- a/third_party/WebKit/Source/core/loader/ImageLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/ImageLoader.cpp
@@ -488,6 +488,11 @@ void ImageLoader::imageNotifyFinished(ImageResourceContent* resource) {
if (m_image && m_image->getImage() && m_image->getImage()->isSVGImage())
toSVGImage(m_image->getImage())->updateUseCounters(element()->document());
+ if (isHTMLImageElement(m_element)) {
+ toHTMLImageElement(m_element)->imageNotifyFinished(
+ !resource->errorOccurred());
+ }
+
if (!m_hasPendingLoadEvent)
return;

Powered by Google App Engine
This is Rietveld 408576698