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" }; enum AnimationReplaceState { "active", "removed", "persisted" };
[Constructor (optional AnimationEffect? effect = null, [Constructor(optional AnimationEffect? effect = null,
optional AnimationTimeline? timeline)] optional AnimationTimeline? timeline)]
interface Animation : EventTarget { interface Animation : EventTarget {
attribute DOMString id; attribute DOMString id;
[Func="Document::IsWebAnimationsEnabled", Pure] [Func="Document::IsWebAnimationsEnabled", Pure]
@ -42,20 +42,20 @@ interface Animation : EventTarget {
attribute EventHandler oncancel; attribute EventHandler oncancel;
[Pref="dom.animations-api.autoremove.enabled"] [Pref="dom.animations-api.autoremove.enabled"]
attribute EventHandler onremove; attribute EventHandler onremove;
void cancel (); void cancel();
[Throws] [Throws]
void finish (); void finish();
[Throws, BinaryName="playFromJS"] [Throws, BinaryName="playFromJS"]
void play (); void play();
[Throws, BinaryName="pauseFromJS"] [Throws, BinaryName="pauseFromJS"]
void pause (); void pause();
void updatePlaybackRate (double playbackRate); void updatePlaybackRate (double playbackRate);
[Throws] [Throws]
void reverse (); void reverse();
[Pref="dom.animations-api.autoremove.enabled"] [Pref="dom.animations-api.autoremove.enabled"]
void persist (); void persist();
[Pref="dom.animations-api.autoremove.enabled", Throws] [Pref="dom.animations-api.autoremove.enabled", Throws]
void commitStyles (); void commitStyles();
}; };
// Non-standard extensions // Non-standard extensions

View file

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

View file

@ -24,18 +24,18 @@ dictionary KeyframeEffectOptions : EffectTiming {
// processing on the `keyframes` object. // processing on the `keyframes` object.
[Func="Document::IsWebAnimationsEnabled", [Func="Document::IsWebAnimationsEnabled",
RunConstructorInCallerCompartment, RunConstructorInCallerCompartment,
Constructor ((Element or CSSPseudoElement)? target, Constructor((Element or CSSPseudoElement)? target,
object? keyframes, object? keyframes,
optional (unrestricted double or KeyframeEffectOptions) options), optional (unrestricted double or KeyframeEffectOptions) options),
Constructor (KeyframeEffect source)] Constructor(KeyframeEffect source)]
interface KeyframeEffect : AnimationEffect { interface KeyframeEffect : AnimationEffect {
attribute (Element or CSSPseudoElement)? target; attribute (Element or CSSPseudoElement)? target;
[Pref="dom.animations-api.compositing.enabled"] [Pref="dom.animations-api.compositing.enabled"]
attribute IterationCompositeOperation iterationComposite; attribute IterationCompositeOperation iterationComposite;
[Pref="dom.animations-api.compositing.enabled"] [Pref="dom.animations-api.compositing.enabled"]
attribute CompositeOperation composite; attribute CompositeOperation composite;
[Throws] sequence<object> getKeyframes (); [Throws] sequence<object> getKeyframes();
[Throws] void setKeyframes (object? keyframes); [Throws] void setKeyframes(object? keyframes);
}; };
// Non-standard extensions // Non-standard extensions