Bug 1436659 - Add Animation.updatePlaybackRate WebIDL definition; r=bz

This is the IDL added to the Web Animations specification:

  5af5e276ba

Note that some of the changes in the above commit were reverted in the following
commit:

  673f6fc126

A folded version of the changes:

  https://gist.github.com/birtles/d147eb2e0e2d4d37fadf217abd709411

MozReview-Commit-ID: CJV7bzizXg4

--HG--
extra : rebase_source : 6dc6819e158bcdd094962769096a17da6cd2026a
This commit is contained in:
Brian Birtles 2018-02-13 15:04:18 +09:00
parent dc21320949
commit 31272ef315
6 changed files with 2 additions and 27 deletions

View File

@ -118,6 +118,7 @@ public:
virtual void Play(ErrorResult& aRv, LimitBehavior aLimitBehavior);
virtual void Pause(ErrorResult& aRv);
void Reverse(ErrorResult& aRv);
void UpdatePlaybackRate(double /*aPlaybackRate*/) {}
bool IsRunningOnCompositor() const;
IMPL_EVENT_HANDLER(finish);
IMPL_EVENT_HANDLER(cancel);

View File

@ -44,6 +44,7 @@ interface Animation : EventTarget {
void play ();
[Throws, BinaryName="pauseFromJS"]
void pause ();
void updatePlaybackRate (double playbackRate);
[Throws]
void reverse ();
};

View File

@ -1,10 +0,0 @@
[idlharness.html]
[Animation interface: operation updatePlaybackRate(double)]
expected: FAIL
[Animation interface: new Animation() must inherit property "updatePlaybackRate(double)" with the proper type]
expected: FAIL
[Animation interface: calling updatePlaybackRate(double) on new Animation() with too few arguments must throw TypeError]
expected: FAIL

View File

@ -1,4 +0,0 @@
[pausing-an-animation.html]
[A pause-pending animation maintains the current time when applying a pending playback rate]
expected: FAIL

View File

@ -1,16 +1,7 @@
[seamlessly-updating-the-playback-rate-of-an-animation.html]
[Updating the playback rate maintains the current time]
expected: FAIL
[Updating the playback rate while running makes the animation pending]
expected: FAIL
[Updating the playback rate on a play-pending animation maintains the current time]
expected: FAIL
[Updating the playback rate on a pause-pending animation maintains the current time]
expected: FAIL
[If a pending playback rate is set multiple times, the latest wins]
expected: FAIL

View File

@ -1,4 +0,0 @@
[setting-the-playback-rate-of-an-animation.html]
[Setting the playback rate should clear any pending playback rate]
expected: FAIL