Upstream version 9.37.197.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / v8 / V8RecursionScope.cpp
index 94e027e..2519250 100644 (file)
@@ -38,14 +38,11 @@ namespace WebCore {
 
 void V8RecursionScope::didLeaveScriptContext()
 {
-    // FIXME: Instrument any work that takes place when script exits to c++ (e.g. Mutation Observers).
+    Microtask::performCheckpoint();
 
     // 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(m_executionContext).deactivateNewTransactions();
-
-    if (m_executionContext.isDocument())
-        Microtask::performCheckpoint();
 }
 
 } // namespace WebCore