| Index: Source/core/page/PageAnimator.cpp
|
| diff --git a/Source/core/page/PageAnimator.cpp b/Source/core/page/PageAnimator.cpp
|
| index 75bd21ca63aeef3957d2ffc7f1ae423e42aba6c1..07cf8556a28dc169d7be108d6ea5367ad483d047 100644
|
| --- a/Source/core/page/PageAnimator.cpp
|
| +++ b/Source/core/page/PageAnimator.cpp
|
| @@ -12,6 +12,7 @@
|
| #include "core/page/ChromeClient.h"
|
| #include "core/page/Page.h"
|
| #include "core/svg/SVGDocumentExtensions.h"
|
| +#include "public/platform/WebFrameTime.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -23,7 +24,7 @@ PageAnimator::PageAnimator(Page* page)
|
| {
|
| }
|
|
|
| -void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
|
| +void PageAnimator::serviceScriptedAnimations(blink::WebFrameTime frameTime)
|
| {
|
| m_animationFramePending = false;
|
| TemporaryChange<bool> servicing(m_servicingAnimations, true);
|
| @@ -33,8 +34,8 @@ void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
|
| RefPtr<LocalFrame> localFrame = toLocalFrame(frame.get());
|
| localFrame->view()->serviceScrollAnimations();
|
|
|
| - DocumentAnimations::updateAnimationTimingForAnimationFrame(*localFrame->document(), monotonicAnimationStartTime);
|
| - SVGDocumentExtensions::serviceOnAnimationFrame(*localFrame->document(), monotonicAnimationStartTime);
|
| + DocumentAnimations::updateAnimationTimingForAnimationFrame(*localFrame->document(), frameTime);
|
| + SVGDocumentExtensions::serviceOnAnimationFrame(*localFrame->document(), frameTime);
|
| }
|
| }
|
|
|
| @@ -45,7 +46,7 @@ void PageAnimator::serviceScriptedAnimations(double monotonicAnimationStartTime)
|
| }
|
|
|
| for (size_t i = 0; i < documents.size(); ++i)
|
| - documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime);
|
| + documents[i]->serviceScriptedAnimations(frameTime);
|
| }
|
|
|
| void PageAnimator::scheduleVisualUpdate()
|
|
|