| 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 989f2ff69b4473c34e42f137d03d71e856fb9a72..da8b0daa4c1b3054a40084598f565c10184ea650 100644
|
| --- a/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
|
| @@ -116,12 +116,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());
|
| }
|
| }
|
|
|
| @@ -170,7 +169,7 @@ void ScriptedAnimationController::serviceScriptedAnimations(double monotonicTime
|
|
|
| void ScriptedAnimationController::enqueueEvent(Event* event)
|
| {
|
| - InspectorInstrumentation::didEnqueueEvent(event->target(), event);
|
| + InspectorInstrumentation::scheduleAsyncTask(event->target()->getExecutionContext(), event->type(), event);
|
| m_eventQueue.append(event);
|
| scheduleAnimationIfNeeded();
|
| }
|
|
|