Skip to content

Commit 20b1ac6

Browse files
committed
[web-animations-1] Fix whitespace in Web Animations IDL
Apparently the space before the '(' in methods is weird. I notice the WebIDL spec doesn't ever do that. Also, the WebIDL spec tends to but a space before and after the { } when defining an enum whereas Web Animations sometimes does, sometimes doesn't. This patch makes that more consistent.
1 parent cf3a00e commit 20b1ac6

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

web-animations-1/Overview.bs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3959,7 +3959,7 @@ dictionary DocumentTimelineOptions {
39593959
};
39603960

39613961
[Exposed=Window,
3962-
Constructor (optional DocumentTimelineOptions options)]
3962+
Constructor(optional DocumentTimelineOptions options)]
39633963
interface DocumentTimeline : AnimationTimeline {
39643964
};
39653965
</pre>
@@ -4002,8 +4002,8 @@ API by the {{Animation}} interface.
40024002

40034003
<pre class='idl'>
40044004
[Exposed=Window,
4005-
Constructor (optional AnimationEffect? effect = null,
4006-
optional AnimationTimeline? timeline)]
4005+
Constructor(optional AnimationEffect? effect = null,
4006+
optional AnimationTimeline? timeline)]
40074007
interface Animation : EventTarget {
40084008
attribute DOMString id;
40094009
attribute AnimationEffect? effect;
@@ -4019,14 +4019,14 @@ interface Animation : EventTarget {
40194019
attribute EventHandler onfinish;
40204020
attribute EventHandler oncancel;
40214021
attribute EventHandler onremove;
4022-
void cancel ();
4023-
void finish ();
4024-
void play ();
4025-
void pause ();
4026-
void updatePlaybackRate (double playbackRate);
4027-
void reverse ();
4028-
void persist ();
4029-
void commitStyles ();
4022+
void cancel();
4023+
void finish();
4024+
void play();
4025+
void pause();
4026+
void updatePlaybackRate(double playbackRate);
4027+
void reverse();
4028+
void persist();
4029+
void commitStyles();
40304030
};
40314031
</pre>
40324032

@@ -4694,16 +4694,16 @@ dictionary ComputedEffectTiming : EffectTiming {
46944694

46954695
<pre class='idl'>
46964696
[Exposed=Window,
4697-
Constructor ((Element or CSSPseudoElement)? target,
4698-
object? keyframes,
4699-
optional (unrestricted double or KeyframeEffectOptions) options),
4700-
Constructor (KeyframeEffect source)]
4697+
Constructor((Element or CSSPseudoElement)? target,
4698+
object? keyframes,
4699+
optional (unrestricted double or KeyframeEffectOptions) options),
4700+
Constructor(KeyframeEffect source)]
47014701
interface KeyframeEffect : AnimationEffect {
47024702
attribute (Element or CSSPseudoElement)? target;
47034703
attribute IterationCompositeOperation iterationComposite;
47044704
attribute CompositeOperation composite;
4705-
sequence&lt;object&gt; getKeyframes ();
4706-
void setKeyframes (object? keyframes);
4705+
sequence&lt;object&gt; getKeyframes();
4706+
void setKeyframes(object? keyframes);
47074707
};
47084708
</pre>
47094709

@@ -5647,7 +5647,7 @@ The possible values of an <a>animation effect</a>'s
56475647
<dfn>IterationCompositeOperation</dfn> enumeration.
56485648

56495649
<pre class='idl'>
5650-
enum IterationCompositeOperation {"replace", "accumulate"};
5650+
enum IterationCompositeOperation { "replace", "accumulate" };
56515651
</pre>
56525652

56535653
: <code>replace</code>
@@ -5670,7 +5670,7 @@ composition behavior are represented by the
56705670
<dfn>CompositeOperation</dfn> enumeration.
56715671

56725672
<pre class='idl'>
5673-
enum CompositeOperation {"replace", "add", "accumulate"};
5673+
enum CompositeOperation { "replace", "add", "accumulate" };
56745674
</pre>
56755675

56765676
: <dfn enum-value for="CompositeOperation,CompositeOperationOrAuto">replace</dfn>
@@ -5701,7 +5701,7 @@ values as the {{CompositeOperation}} enumeration along with the additional
57015701
{{CompositeOperationOrAuto/auto}} value.
57025702

57035703
<pre class='idl'>
5704-
enum CompositeOperationOrAuto {"replace", "add", "accumulate", "auto"};
5704+
enum CompositeOperationOrAuto { "replace", "add", "accumulate", "auto" };
57055705
</pre>
57065706

57075707
: <dfn enum-value for=CompositeOperationOrAuto>auto</dfn>
@@ -5715,17 +5715,17 @@ the {{Animatable}} interface mixin.
57155715

57165716
<pre class='idl'>
57175717
interface mixin Animatable {
5718-
Animation animate (object? keyframes,
5719-
optional (unrestricted double or KeyframeAnimationOptions) options);
5720-
sequence&lt;Animation&gt; getAnimations (optional GetAnimationsOptions options);
5718+
Animation animate(object? keyframes,
5719+
optional (unrestricted double or KeyframeAnimationOptions) options);
5720+
sequence&lt;Animation&gt; getAnimations(optional GetAnimationsOptions options);
57215721
};
57225722

57235723
dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
57245724
DOMString id = "";
57255725
};
57265726

57275727
dictionary GetAnimationsOptions {
5728-
boolean subtree = false;
5728+
boolean subtree = false;
57295729
};
57305730
</pre>
57315731

@@ -5919,7 +5919,7 @@ CSSPseudoElement includes Animatable;
59195919

59205920
<pre class='idl'>
59215921
[Exposed=Window,
5922-
Constructor (DOMString type, optional AnimationPlaybackEventInit eventInitDict)]
5922+
Constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict)]
59235923
interface AnimationPlaybackEvent : Event {
59245924
readonly attribute double? currentTime;
59255925
readonly attribute double? timelineTime;

0 commit comments

Comments
 (0)