| Index: Source/core/loader/ImageLoader.h
|
| diff --git a/Source/core/loader/ImageLoader.h b/Source/core/loader/ImageLoader.h
|
| index 991eeef4d3da588654233e76813aa177d3e216a8..5a2f12f4d5d9c9645b27a76f8356811632886747 100644
|
| --- a/Source/core/loader/ImageLoader.h
|
| +++ b/Source/core/loader/ImageLoader.h
|
| @@ -63,6 +63,11 @@
|
| virtual ~ImageLoader();
|
| void trace(Visitor*);
|
|
|
| + enum LoadType {
|
| + LoadNormally,
|
| + ForceLoadImmediately
|
| + };
|
| +
|
| enum UpdateFromElementBehavior {
|
| // This should be the update behavior when the element is attached to a document, or when DOM mutations trigger a new load.
|
| // Starts loading if a load hasn't already been started.
|
| @@ -80,7 +85,7 @@
|
| DoNotBypassMainWorldCSP
|
| };
|
|
|
| - void updateFromElement(UpdateFromElementBehavior = UpdateNormal);
|
| + void updateFromElement(UpdateFromElementBehavior = UpdateNormal, LoadType = LoadNormally);
|
|
|
| void elementDidMoveToNewDocument();
|
|
|
| @@ -107,6 +112,7 @@
|
|
|
| void addClient(ImageLoaderClient*);
|
| void removeClient(ImageLoaderClient*);
|
| +
|
| protected:
|
| virtual void notifyFinished(Resource*) override;
|
|
|
| @@ -118,7 +124,6 @@
|
|
|
| virtual void dispatchLoadEvent() = 0;
|
| virtual String sourceURI(const AtomicString&) const = 0;
|
| - virtual void noImageResourceToLoad() { };
|
|
|
| void updatedHasPendingEvent();
|
|
|
| @@ -141,7 +146,7 @@
|
|
|
| // Used to determine whether to immediately initiate the load
|
| // or to schedule a microtask.
|
| - bool shouldLoadImmediately(const KURL&) const;
|
| + bool shouldLoadImmediately(const KURL&, LoadType) const;
|
|
|
| void willRemoveClient(ImageLoaderClient&);
|
|
|
|
|