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

Unified Diff: Source/core/dom/Microtask.h

Issue 1163543002: Reland "Correctly set ScriptState in the image loader microtask" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 years, 7 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
« no previous file with comments | « no previous file | Source/core/loader/ImageLoader.cpp » ('j') | Source/core/loader/ImageLoader.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Microtask.h
diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/Microtask.h
index e2c86bbc226392a47d1d6caa2d793c23756a27b9..e111c03da1dac1d1b06913a2c62c37b97c434e99 100644
--- a/Source/core/dom/Microtask.h
+++ b/Source/core/dom/Microtask.h
@@ -44,6 +44,10 @@ class CORE_EXPORT Microtask {
public:
static void performCheckpoint(v8::Isolate*);
static bool performingCheckpoint(v8::Isolate*);
+
+ // TODO(jochen): Make all microtasks pass in the ScriptState they want to be
+ // executed in. Until then, all microtasks have to keep track of their
+ // ScriptState themselves.
static void enqueueMicrotask(PassOwnPtr<WebThread::Task>);
static void enqueueMicrotask(PassOwnPtr<Closure>);
« no previous file with comments | « no previous file | Source/core/loader/ImageLoader.cpp » ('j') | Source/core/loader/ImageLoader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698