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

Unified Diff: Source/bindings/modules/v8/ModuleBindingsInitializer.cpp

Issue 429453010: Drop V8RecursionScope dependency on ExecutionContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reorder cleanup methods per haraken Created 6 years, 3 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/bindings/modules/v8/ModuleBindingsInitializer.cpp
diff --git a/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp b/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp
index ff087e35dc2c70ff719811c56b0b8a6636c00e92..fcf86c7416092db98bd79a2c7541467745ececd0 100644
--- a/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp
+++ b/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp
@@ -6,16 +6,17 @@
#include "bindings/modules/v8/ModuleBindingsInitializer.h"
#include "bindings/core/v8/ModuleProxy.h"
+#include "bindings/core/v8/V8PerIsolateData.h"
#include "core/dom/ExecutionContext.h"
#include "modules/indexeddb/IDBPendingTransactionMonitor.h"
namespace blink {
-static void didLeaveScriptContextForModule(ExecutionContext& executionContext)
+static void didLeaveScriptContextForModule(v8::Isolate* isolate)
{
// Indexed DB requires that transactions are created with an internal |active| flag
// set to true, but the flag becomes false when control returns to the event loop.
- IDBPendingTransactionMonitor::from(executionContext).deactivateNewTransactions();
+ V8PerIsolateData::from(isolate)->ensureIDBPendingTransactionMonitor()->deactivateNewTransactions();
}
void ModuleBindingsInitializer::init()
« no previous file with comments | « Source/bindings/core/v8/WorkerScriptController.cpp ('k') | Source/modules/indexeddb/IDBPendingTransactionMonitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698