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

Unified Diff: Source/core/animation/AnimationPlayer.cpp

Issue 939623002: Add TypeChecking=Unrestricted to Web Animation APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop AnimationAnimationPlayerTest.SetCurrentTimeUnrestrictedDouble Created 5 years, 10 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/animation/AnimationNodeTiming.cpp ('k') | Source/core/animation/AnimationPlayer.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationPlayer.cpp
diff --git a/Source/core/animation/AnimationPlayer.cpp b/Source/core/animation/AnimationPlayer.cpp
index 6bcdb6b9b7afd894213d44a540da3da0c10f9751..94cd7cc2d75907f12ad1a1edf94fc1ea1833baff 100644
--- a/Source/core/animation/AnimationPlayer.cpp
+++ b/Source/core/animation/AnimationPlayer.cpp
@@ -123,8 +123,6 @@ bool AnimationPlayer::limited(double currentTime) const
void AnimationPlayer::setCurrentTime(double newCurrentTime)
{
UseCounter::count(executionContext(), UseCounter::AnimationPlayerSetCurrentTime);
- if (!std::isfinite(newCurrentTime))
- return;
PlayStateUpdateScope updateScope(*this, TimingUpdateOnDemand);
@@ -372,8 +370,6 @@ void AnimationPlayer::setStartTime(double startTime)
UseCounter::count(executionContext(), UseCounter::AnimationPlayerSetStartTime);
if (m_paused || playStateInternal() == Idle)
return;
- if (!std::isfinite(startTime))
- return;
if (startTime == m_startTime)
return;
@@ -626,8 +622,6 @@ double AnimationPlayer::playbackRate() const
void AnimationPlayer::setPlaybackRate(double playbackRate)
{
UseCounter::count(executionContext(), UseCounter::AnimationPlayerSetPlaybackRate);
- if (!std::isfinite(playbackRate))
- return;
if (playbackRate == m_playbackRate)
return;
« no previous file with comments | « Source/core/animation/AnimationNodeTiming.cpp ('k') | Source/core/animation/AnimationPlayer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698