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

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

Issue 259503007: Flush microtask before event handlers are invoked (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added an expected.txt file. Created 6 years, 8 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/core/dom/Microtask.cpp
diff --git a/Source/core/dom/Microtask.cpp b/Source/core/dom/Microtask.cpp
index 8902693cd08bb3918bec1fba6f98ebf557690b36..fd541f92ea4c279794874462c777de95434a39df 100644
--- a/Source/core/dom/Microtask.cpp
+++ b/Source/core/dom/Microtask.cpp
@@ -49,7 +49,12 @@ static MicrotaskQueue& microtaskQueue()
void Microtask::performCheckpoint()
{
- V8PerIsolateData* isolateData = V8PerIsolateData::from(v8::Isolate::GetCurrent());
+ performCheckpoint(v8::Isolate::GetCurrent());
+}
+
+void Microtask::performCheckpoint(v8::Isolate* isolate)
+{
+ V8PerIsolateData* isolateData = V8PerIsolateData::from(isolate);
ASSERT(isolateData);
if (isolateData->recursionLevel() || isolateData->performingMicrotaskCheckpoint())
return;
« Source/bindings/v8/V8AbstractEventListener.cpp ('K') | « Source/core/dom/Microtask.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698