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:
Brian Birtles 2019-05-20 05:22:44 +00:00
parent 1acaba034d
commit 1254291373
3 changed files with 16 additions and 16 deletions

View File

@ -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

View File

@ -15,6 +15,6 @@ dictionary DocumentTimelineOptions {
};
[Func="Document::AreWebAnimationsTimelinesEnabled",
Constructor (optional DocumentTimelineOptions options)]
Constructor(optional DocumentTimelineOptions options)]
interface DocumentTimeline : AnimationTimeline {
};

View File

@ -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