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

Unified Diff: Source/core/animation/AnimationStackTest.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: Patch to run on try bots. Created 6 years, 6 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
Index: Source/core/animation/AnimationStackTest.cpp
diff --git a/Source/core/animation/AnimationStackTest.cpp b/Source/core/animation/AnimationStackTest.cpp
index 5ebdf835d6fdf97fda73aa47b30dcaebeb3c9f01..6a0f416dc2d126f3bce232ed6fc8288c89f69f20 100644
--- a/Source/core/animation/AnimationStackTest.cpp
+++ b/Source/core/animation/AnimationStackTest.cpp
@@ -20,7 +20,8 @@ protected:
virtual void SetUp()
{
document = Document::create();
- document->animationClock().resetTimeForTesting();
+ document->animationClock().clearTimeForTesting();
+ document->animationClock().updateTime(blink::WebFrameTime(-1, -1, 0, 0));
timeline = AnimationTimeline::create(document.get());
element = document->createElement("foo", ASSERT_NO_EXCEPTION);
}
@@ -35,7 +36,7 @@ protected:
void updateTimeline(double time)
{
- document->animationClock().updateTime(time);
+ document->animationClock().updateTime(blink::WebFrameTime(-1, -1, time, time + 1));
timeline->serviceAnimations(TimingUpdateForAnimationFrame);
}

Powered by Google App Engine
This is Rietveld 408576698