Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1284)

Unified Diff: Source/core/page/PageAnimator.cpp

Issue 369793003: Make the web-animations engine use the passed in blink::WebFrameTime values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing remaining usages of -1 in the code. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/PageAnimator.h ('k') | Source/core/svg/SVGDocumentExtensions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « Source/core/page/PageAnimator.h ('k') | Source/core/svg/SVGDocumentExtensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698