mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
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:
parent
dc21320949
commit
31272ef315
@ -118,6 +118,7 @@ public:
|
|||||||
virtual void Play(ErrorResult& aRv, LimitBehavior aLimitBehavior);
|
virtual void Play(ErrorResult& aRv, LimitBehavior aLimitBehavior);
|
||||||
virtual void Pause(ErrorResult& aRv);
|
virtual void Pause(ErrorResult& aRv);
|
||||||
void Reverse(ErrorResult& aRv);
|
void Reverse(ErrorResult& aRv);
|
||||||
|
void UpdatePlaybackRate(double /*aPlaybackRate*/) {}
|
||||||
bool IsRunningOnCompositor() const;
|
bool IsRunningOnCompositor() const;
|
||||||
IMPL_EVENT_HANDLER(finish);
|
IMPL_EVENT_HANDLER(finish);
|
||||||
IMPL_EVENT_HANDLER(cancel);
|
IMPL_EVENT_HANDLER(cancel);
|
||||||
|
@ -44,6 +44,7 @@ interface Animation : EventTarget {
|
|||||||
void play ();
|
void play ();
|
||||||
[Throws, BinaryName="pauseFromJS"]
|
[Throws, BinaryName="pauseFromJS"]
|
||||||
void pause ();
|
void pause ();
|
||||||
|
void updatePlaybackRate (double playbackRate);
|
||||||
[Throws]
|
[Throws]
|
||||||
void reverse ();
|
void reverse ();
|
||||||
};
|
};
|
||||||
|
@ -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
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
[pausing-an-animation.html]
|
|
||||||
[A pause-pending animation maintains the current time when applying a pending playback rate]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
@ -1,16 +1,7 @@
|
|||||||
[seamlessly-updating-the-playback-rate-of-an-animation.html]
|
[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]
|
[Updating the playback rate while running makes the animation pending]
|
||||||
expected: FAIL
|
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]
|
[If a pending playback rate is set multiple times, the latest wins]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
[setting-the-playback-rate-of-an-animation.html]
|
|
||||||
[Setting the playback rate should clear any pending playback rate]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user