| Index: Source/core/loader/ImageLoader.h
|
| diff --git a/Source/core/loader/ImageLoader.h b/Source/core/loader/ImageLoader.h
|
| index f8dd45a6048b957636f7af0f301ca2270b40a1dd..60e91ec8bf21812d10e86e2624eda2bdda9b74cb 100644
|
| --- a/Source/core/loader/ImageLoader.h
|
| +++ b/Source/core/loader/ImageLoader.h
|
| @@ -63,11 +63,6 @@ public:
|
| 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.
|
| @@ -85,7 +80,7 @@ public:
|
| DoNotBypassMainWorldCSP
|
| };
|
|
|
| - void updateFromElement(UpdateFromElementBehavior = UpdateNormal, LoadType = LoadNormally);
|
| + void updateFromElement(UpdateFromElementBehavior = UpdateNormal);
|
|
|
| void elementDidMoveToNewDocument();
|
|
|
| @@ -124,6 +119,7 @@ private:
|
|
|
| virtual void dispatchLoadEvent() = 0;
|
| virtual String sourceURI(const AtomicString&) const = 0;
|
| + virtual void noImageResourceToLoad() { };
|
|
|
| void updatedHasPendingEvent();
|
|
|
| @@ -146,7 +142,7 @@ private:
|
|
|
| // Used to determine whether to immediately initiate the load
|
| // or to schedule a microtask.
|
| - bool shouldLoadImmediately(const KURL&, LoadType) const;
|
| + bool shouldLoadImmediately(const KURL&) const;
|
|
|
| void willRemoveClient(ImageLoaderClient&);
|
|
|
|
|