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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp

Issue 1857713004: DevTools: simplify the async instrumentation harness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp b/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
index 98339e6b115641d11e02efd45785f77601fa7c8c..a341c33ce6dfd270ecedea09f343d946dd1ce4b6 100644
--- a/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
@@ -118,12 +118,11 @@ void ScriptedAnimationController::dispatchEvents(const AtomicString& eventInterf
// FIXME: we should figure out how to make dispatchEvent properly virtual to avoid
// special casting window.
// FIXME: We should not fire events for nodes that are no longer in the tree.
+ InspectorInstrumentation::AsyncTask asyncTask(eventTarget->getExecutionContext(), events[i]);
if (LocalDOMWindow* window = eventTarget->toDOMWindow())
window->dispatchEvent(events[i], nullptr);
else
eventTarget->dispatchEvent(events[i]);
-
- InspectorInstrumentation::didRemoveEvent(eventTarget, events[i].get());
}
}
@@ -172,7 +171,7 @@ void ScriptedAnimationController::serviceScriptedAnimations(double monotonicTime
void ScriptedAnimationController::enqueueEvent(Event* event)
{
- InspectorInstrumentation::didEnqueueEvent(event->target(), event);
+ InspectorInstrumentation::scheduleAsyncTask(event->target()->getExecutionContext(), "Event", event);
m_eventQueue.append(event);
scheduleAnimationIfNeeded();
}

Powered by Google App Engine
This is Rietveld 408576698