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

Unified Diff: Source/bindings/v8/V8RecursionScope.cpp

Issue 14660019: Run Mutation Observer and Custom Element callbacks consistently at microtask checkpoint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing. Created 7 years, 6 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/CustomElementConstructorBuilder.cpp ('k') | Source/core/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8RecursionScope.cpp
diff --git a/Source/bindings/v8/V8RecursionScope.cpp b/Source/bindings/v8/V8RecursionScope.cpp
index 12cb3b5d854ef62d9aa1098eb7b6610b56325da0..c08fba7c855efb188047777c0fb263a92d5f16c7 100644
--- a/Source/bindings/v8/V8RecursionScope.cpp
+++ b/Source/bindings/v8/V8RecursionScope.cpp
@@ -31,8 +31,7 @@
#include "config.h"
#include "bindings/v8/V8RecursionScope.h"
-#include "core/dom/CustomElementRegistry.h"
-#include "core/dom/MutationObserver.h"
+#include "core/dom/Microtask.h"
#include "modules/indexeddb/IDBPendingTransactionMonitor.h"
namespace WebCore {
@@ -45,10 +44,8 @@ void V8RecursionScope::didLeaveScriptContext()
// set to true, but the flag becomes false when control returns to the event loop.
IDBPendingTransactionMonitor::deactivateNewTransactions();
- if (m_isDocumentContext) {
- MutationObserver::deliverAllMutations();
- CustomElementRegistry::deliverAllLifecycleCallbacks();
- }
+ if (m_isDocumentContext)
+ Microtask::performCheckpoint();
}
} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/CustomElementConstructorBuilder.cpp ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698