Index: Source/core/animation/AnimationTest.cpp |
diff --git a/Source/core/animation/AnimationTest.cpp b/Source/core/animation/AnimationTest.cpp |
index c530bf2030df6af2a1a61155505229285068fda1..beaae605149f07786aca0f6cc05fe5247f832345 100644 |
--- a/Source/core/animation/AnimationTest.cpp |
+++ b/Source/core/animation/AnimationTest.cpp |
@@ -25,8 +25,8 @@ protected: |
, element(document->createElement("foo", ASSERT_NO_EXCEPTION)) |
{ |
document->animationClock().resetTimeForTesting(); |
- document->timeline()->setZeroTime(0); |
- EXPECT_EQ(0, document->timeline()->currentTime()); |
+ document->timeline().setZeroTime(0); |
+ EXPECT_EQ(0, document->timeline().currentTime()); |
} |
RefPtr<Document> document; |
@@ -286,7 +286,7 @@ TEST_F(AnimationAnimationTest, TimeToEffectChange) |
timing.endDelay = 100; |
timing.fillMode = Timing::FillModeNone; |
RefPtr<Animation> animation = Animation::create(nullptr, nullptr, timing); |
- RefPtr<Player> player = document->timeline()->play(animation.get()); |
+ RefPtr<Player> player = document->timeline().play(animation.get()); |
double inf = std::numeric_limits<double>::infinity(); |
EXPECT_EQ(100, animation->timeToForwardsEffectChange()); |
@@ -319,7 +319,7 @@ TEST_F(AnimationAnimationTest, TimeToEffectChangeWithPlaybackRate) |
timing.playbackRate = 2; |
timing.fillMode = Timing::FillModeNone; |
RefPtr<Animation> animation = Animation::create(nullptr, nullptr, timing); |
- RefPtr<Player> player = document->timeline()->play(animation.get()); |
+ RefPtr<Player> player = document->timeline().play(animation.get()); |
double inf = std::numeric_limits<double>::infinity(); |
EXPECT_EQ(100, animation->timeToForwardsEffectChange()); |
@@ -352,7 +352,7 @@ TEST_F(AnimationAnimationTest, TimeToEffectChangeWithNegativePlaybackRate) |
timing.playbackRate = -2; |
timing.fillMode = Timing::FillModeNone; |
RefPtr<Animation> animation = Animation::create(nullptr, nullptr, timing); |
- RefPtr<Player> player = document->timeline()->play(animation.get()); |
+ RefPtr<Player> player = document->timeline().play(animation.get()); |
double inf = std::numeric_limits<double>::infinity(); |
EXPECT_EQ(100, animation->timeToForwardsEffectChange()); |