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

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

Issue 696123002: Revert of Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Source/core/html/forms/InputTypeView.cpp ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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&);
« no previous file with comments | « Source/core/html/forms/InputTypeView.cpp ('k') | Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698