| Index: Source/core/frame/FrameView.cpp
|
| diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
|
| index aa4988f149f2db66f85fdc75c814b79b31926950..e5dc0640fc93da5f00fe0e7ffc6a536c53e64d94 100644
|
| --- a/Source/core/frame/FrameView.cpp
|
| +++ b/Source/core/frame/FrameView.cpp
|
| @@ -2050,6 +2050,11 @@ void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime)
|
| if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled())
|
| frame->animation().serviceAnimations();
|
|
|
| + // FIXME: Animation events for newly started CSS Animations should be fired
|
| + // asynchronously after the style recalc that triggered them. For now we fire
|
| + // them here (a frame late) so that they at least apply against the correct
|
| + // animation state.
|
| + frame->document()->dispatchAnimationEvents();
|
| frame->document()->serviceAnimations(monotonicAnimationStartTime);
|
| frame->document()->dispatchAnimationEvents();
|
| }
|
|
|