| Index: Source/core/frame/FrameView.cpp
|
| diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
|
| index e5dc0640fc93da5f00fe0e7ffc6a536c53e64d94..fa56877a5027c55cb0f1043b592dd7baedc16337 100644
|
| --- a/Source/core/frame/FrameView.cpp
|
| +++ b/Source/core/frame/FrameView.cpp
|
| @@ -30,6 +30,7 @@
|
| #include "HTMLNames.h"
|
| #include "RuntimeEnabledFeatures.h"
|
| #include "core/accessibility/AXObjectCache.h"
|
| +#include "core/animation/DocumentAnimations.h"
|
| #include "core/css/FontFaceSet.h"
|
| #include "core/css/resolver/StyleResolver.h"
|
| #include "core/dom/DocumentMarkerController.h"
|
| @@ -2050,13 +2051,7 @@ 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();
|
| + DocumentAnimations::serviceOnAnimationFrame(*frame->document(), monotonicAnimationStartTime);
|
| }
|
|
|
| Vector<RefPtr<Document> > documents;
|
|
|