Index: Source/core/loader/ImageLoader.h |
diff --git a/Source/core/loader/ImageLoader.h b/Source/core/loader/ImageLoader.h |
index 67754b9ebf8ca64721ba4b6b54341cf233bf7817..4264da3f9c5120ea8dc71bd5001ca7e33a5b1d5b 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(); |
@@ -112,7 +107,6 @@ public: |
void addClient(ImageLoaderClient*); |
void removeClient(ImageLoaderClient*); |
- |
protected: |
virtual void notifyFinished(Resource*) override; |
@@ -124,6 +118,7 @@ private: |
virtual void dispatchLoadEvent() = 0; |
virtual String sourceURI(const AtomicString&) const = 0; |
+ virtual void noImageResourceToLoad() { }; |
void updatedHasPendingEvent(); |
@@ -147,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&); |