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

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

Issue 481753002: Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years 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: 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&);

Powered by Google App Engine
This is Rietveld 408576698