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

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

Issue 184043002: Only Microtask::performCheckpoint() if recursionLevel is 0 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cleanup Created 6 years, 9 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 | « LayoutTests/fast/dom/MutationObserver/document-write-expected.txt ('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 d26cde4ac148de489c6491daa7430b6dce05f138..a70aed8750b311b5d5d0b2637b65ae94d766596d 100644
--- a/Source/core/dom/Microtask.cpp
+++ b/Source/core/dom/Microtask.cpp
@@ -48,7 +48,7 @@ void Microtask::performCheckpoint()
{
V8PerIsolateData* isolateData = V8PerIsolateData::current();
ASSERT(isolateData);
- if (isolateData->performingMicrotaskCheckpoint())
+ if (isolateData->recursionLevel() || isolateData->performingMicrotaskCheckpoint())
return;
isolateData->setPerformingMicrotaskCheckpoint(true);
« no previous file with comments | « LayoutTests/fast/dom/MutationObserver/document-write-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698