| Index: Source/core/loader/ImageLoader.h
|
| diff --git a/Source/core/loader/ImageLoader.h b/Source/core/loader/ImageLoader.h
|
| index 06fb47478bdb59775d8de7048ac539937cbb408c..4f41d50756ba1e899763aacc486070cf8f58c7ea 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();
|
|
|
| @@ -119,7 +124,6 @@
|
|
|
| virtual void dispatchLoadEvent() = 0;
|
| virtual String sourceURI(const AtomicString&) const = 0;
|
| - virtual void noImageResourceToLoad() { };
|
|
|
| void updatedHasPendingEvent();
|
|
|
| @@ -142,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&);
|
|
|
|
|