| 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();
|
| }
|
|
|