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

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

Issue 303693005: Simplify Blink <-> V8 Microtask queue running protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/bindings/v8/V8PerIsolateData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Microtask.cpp
diff --git a/Source/core/dom/Microtask.cpp b/Source/core/dom/Microtask.cpp
index f7ebc42c2ffdfe6c2a46feb184eeb29b16eb64ef..7eed205751602759eab6e1b581ffb4f48504511e 100644
--- a/Source/core/dom/Microtask.cpp
+++ b/Source/core/dom/Microtask.cpp
@@ -47,14 +47,7 @@ void Microtask::performCheckpoint()
if (isolateData->recursionLevel() || isolateData->performingMicrotaskCheckpoint())
return;
isolateData->setPerformingMicrotaskCheckpoint(true);
-
- v8::HandleScope handleScope(isolate);
- v8::Local<v8::Context> context = isolateData->ensureDomInJSContext();
- if (!context.IsEmpty()) {
- v8::Context::Scope scope(context);
- isolate->RunMicrotasks();
- }
-
+ isolate->RunMicrotasks();
isolateData->setPerformingMicrotaskCheckpoint(false);
}
« no previous file with comments | « Source/bindings/v8/V8PerIsolateData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698