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

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

Issue 2247073006: Add loadend event when finishing loading image Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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.h
diff --git a/third_party/WebKit/Source/core/loader/ImageLoader.h b/third_party/WebKit/Source/core/loader/ImageLoader.h
index 4898446af2cdcee88aef2c42cc7d63b547deb88d..5b62673b7eb23f15c8b83648432505199fdc4a1b 100644
--- a/third_party/WebKit/Source/core/loader/ImageLoader.h
+++ b/third_party/WebKit/Source/core/loader/ImageLoader.h
@@ -118,12 +118,14 @@ private:
void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior, const KURL&, ReferrerPolicy = ReferrerPolicyDefault);
virtual void dispatchLoadEvent() = 0;
+ virtual void dispatchLoadendEvent() {};
virtual void noImageResourceToLoad() { }
void updatedHasPendingEvent();
void dispatchPendingLoadEvent();
void dispatchPendingErrorEvent();
+ void dispatchPendingLoadendEvent();
LayoutImageResource* layoutImageResource();
void updateLayoutObject();

Powered by Google App Engine
This is Rietveld 408576698