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

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

Issue 200923002: Post a microtask to load <img> elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: all tests fixed Created 6 years, 9 months 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 589d2a8ed8f7ce9febc57df8fe96adc20684c60f..e0cbc3d60b2cd489bb8a06c351dfc4af7311c174 100644
--- a/Source/core/loader/ImageLoader.h
+++ b/Source/core/loader/ImageLoader.h
@@ -65,6 +65,10 @@ public:
// doesn't change; starts new load unconditionally (matches Firefox and Opera behavior).
void updateFromElementIgnoringPreviousError();
+ // Use this function to determine whether to immediately call updateFromElement
+ // or to schedule a microtask.
+ bool shouldLoadImmediately() const;
+
void elementDidMoveToNewDocument();
Element* element() const { return m_element; }

Powered by Google App Engine
This is Rietveld 408576698