mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
Bug 1253476 - Make whitespace in Web Animations WebIDL definitions more consistent; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D30611 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
1acaba034d
commit
1254291373
@ -14,8 +14,8 @@ enum AnimationPlayState { "idle", "running", "paused", "finished" };
|
||||
|
||||
enum AnimationReplaceState { "active", "removed", "persisted" };
|
||||
|
||||
[Constructor (optional AnimationEffect? effect = null,
|
||||
optional AnimationTimeline? timeline)]
|
||||
[Constructor(optional AnimationEffect? effect = null,
|
||||
optional AnimationTimeline? timeline)]
|
||||
interface Animation : EventTarget {
|
||||
attribute DOMString id;
|
||||
[Func="Document::IsWebAnimationsEnabled", Pure]
|
||||
@ -42,20 +42,20 @@ interface Animation : EventTarget {
|
||||
attribute EventHandler oncancel;
|
||||
[Pref="dom.animations-api.autoremove.enabled"]
|
||||
attribute EventHandler onremove;
|
||||
void cancel ();
|
||||
void cancel();
|
||||
[Throws]
|
||||
void finish ();
|
||||
void finish();
|
||||
[Throws, BinaryName="playFromJS"]
|
||||
void play ();
|
||||
void play();
|
||||
[Throws, BinaryName="pauseFromJS"]
|
||||
void pause ();
|
||||
void pause();
|
||||
void updatePlaybackRate (double playbackRate);
|
||||
[Throws]
|
||||
void reverse ();
|
||||
void reverse();
|
||||
[Pref="dom.animations-api.autoremove.enabled"]
|
||||
void persist ();
|
||||
void persist();
|
||||
[Pref="dom.animations-api.autoremove.enabled", Throws]
|
||||
void commitStyles ();
|
||||
void commitStyles();
|
||||
};
|
||||
|
||||
// Non-standard extensions
|
||||
|
@ -15,6 +15,6 @@ dictionary DocumentTimelineOptions {
|
||||
};
|
||||
|
||||
[Func="Document::AreWebAnimationsTimelinesEnabled",
|
||||
Constructor (optional DocumentTimelineOptions options)]
|
||||
Constructor(optional DocumentTimelineOptions options)]
|
||||
interface DocumentTimeline : AnimationTimeline {
|
||||
};
|
||||
|
@ -24,18 +24,18 @@ dictionary KeyframeEffectOptions : EffectTiming {
|
||||
// processing on the `keyframes` object.
|
||||
[Func="Document::IsWebAnimationsEnabled",
|
||||
RunConstructorInCallerCompartment,
|
||||
Constructor ((Element or CSSPseudoElement)? target,
|
||||
object? keyframes,
|
||||
optional (unrestricted double or KeyframeEffectOptions) options),
|
||||
Constructor (KeyframeEffect source)]
|
||||
Constructor((Element or CSSPseudoElement)? target,
|
||||
object? keyframes,
|
||||
optional (unrestricted double or KeyframeEffectOptions) options),
|
||||
Constructor(KeyframeEffect source)]
|
||||
interface KeyframeEffect : AnimationEffect {
|
||||
attribute (Element or CSSPseudoElement)? target;
|
||||
[Pref="dom.animations-api.compositing.enabled"]
|
||||
attribute IterationCompositeOperation iterationComposite;
|
||||
[Pref="dom.animations-api.compositing.enabled"]
|
||||
attribute CompositeOperation composite;
|
||||
[Throws] sequence<object> getKeyframes ();
|
||||
[Throws] void setKeyframes (object? keyframes);
|
||||
[Throws] sequence<object> getKeyframes();
|
||||
[Throws] void setKeyframes(object? keyframes);
|
||||
};
|
||||
|
||||
// Non-standard extensions
|
||||
|
Loading…
Reference in New Issue
Block a user