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

Unified Diff: Source/bindings/v8/ScriptPromiseResolverWithContext.h

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 | « no previous file | Source/bindings/v8/ScriptPromiseResolverWithContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptPromiseResolverWithContext.h
diff --git a/Source/bindings/v8/ScriptPromiseResolverWithContext.h b/Source/bindings/v8/ScriptPromiseResolverWithContext.h
index 1bcef1730facbf35e452eec872a5ec44bb76012b..594d12f29897f3e6583157ea4a49e4502b900fcb 100644
--- a/Source/bindings/v8/ScriptPromiseResolverWithContext.h
+++ b/Source/bindings/v8/ScriptPromiseResolverWithContext.h
@@ -103,16 +103,11 @@ private:
ScriptState::Scope scope(m_scriptState.get());
m_value.set(m_scriptState->isolate(), toV8Value(value));
- if (!executionContext()->activeDOMObjectsAreSuspended()) {
+ if (!executionContext()->activeDOMObjectsAreSuspended())
resolveOrRejectImmediately();
- // |this| can't be deleted here, so it is safe to call an instance
- // method.
- postRunMicrotasks();
- }
}
void resolveOrRejectImmediately();
- void postRunMicrotasks();
void onTimerFired(Timer<ScriptPromiseResolverWithContext>*);
void clear();
« no previous file with comments | « no previous file | Source/bindings/v8/ScriptPromiseResolverWithContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698