Skip to content

Commit e6f82a6

Browse files
committed
[web-animations-1] Use constructor()
1 parent e69f234 commit e6f82a6

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

web-animations-1/Overview.bs

+20-19
Original file line numberDiff line numberDiff line change
@@ -3902,9 +3902,9 @@ dictionary DocumentTimelineOptions {
39023902
DOMHighResTimeStamp originTime = 0;
39033903
};
39043904

3905-
[Exposed=Window,
3906-
Constructor(optional DocumentTimelineOptions options = {})]
3905+
[Exposed=Window]
39073906
interface DocumentTimeline : AnimationTimeline {
3907+
constructor(optional DocumentTimelineOptions options = {});
39083908
};
39093909
</pre>
39103910

@@ -3916,7 +3916,7 @@ interface DocumentTimeline : AnimationTimeline {
39163916

39173917
</div>
39183918

3919-
<div class='constructors'>
3919+
<div class=constructors>
39203920

39213921
: <dfn constructor for=DocumentTimeline
39223922
lt="DocumentTimeline(options)">DocumentTimeline (options)</dfn>
@@ -3945,10 +3945,10 @@ interface DocumentTimeline : AnimationTimeline {
39453945
API by the {{Animation}} interface.
39463946

39473947
<pre class='idl'>
3948-
[Exposed=Window,
3949-
Constructor(optional AnimationEffect? effect = null,
3950-
optional AnimationTimeline? timeline)]
3948+
[Exposed=Window]
39513949
interface Animation : EventTarget {
3950+
constructor(optional AnimationEffect? effect = null,
3951+
optional AnimationTimeline? timeline);
39523952
attribute DOMString id;
39533953
attribute AnimationEffect? effect;
39543954
readonly attribute AnimationTimeline? timeline;
@@ -3974,7 +3974,7 @@ interface Animation : EventTarget {
39743974
};
39753975
</pre>
39763976

3977-
<div class="constructors">
3977+
<div class=constructors>
39783978

39793979
: <dfn constructor for=Animation
39803980
lt="Animation(effect, timeline)">Animation (effect, timeline)</dfn>
@@ -4635,20 +4635,20 @@ dictionary ComputedEffectTiming : EffectTiming {
46354635
<a>Keyframe effects</a> are represented by the {{KeyframeEffect}} interface.
46364636

46374637
<pre class='idl'>
4638-
[Exposed=Window,
4639-
Constructor((Element or CSSPseudoElement)? target,
4640-
object? keyframes,
4641-
optional (unrestricted double or KeyframeEffectOptions) options = {}),
4642-
Constructor(KeyframeEffect source)]
4638+
[Exposed=Window]
46434639
interface KeyframeEffect : AnimationEffect {
4640+
constructor((Element or CSSPseudoElement)? target,
4641+
object? keyframes,
4642+
optional (unrestricted double or KeyframeEffectOptions) options = {});
4643+
constructor(KeyframeEffect source);
46444644
attribute (Element or CSSPseudoElement)? target;
46454645
attribute CompositeOperation composite;
46464646
sequence&lt;object&gt; getKeyframes();
46474647
void setKeyframes(object? keyframes);
46484648
};
46494649
</pre>
46504650

4651-
<div class="constructors">
4651+
<div class=constructors>
46524652

46534653
: <dfn constructor for=KeyframeEffect
46544654
lt="KeyframeEffect(target, keyframes, options)">
@@ -4718,7 +4718,7 @@ interface KeyframeEffect : AnimationEffect {
47184718

47194719
: <dfn constructor for=KeyframeEffect lt="KeyframeEffect(source)">KeyframeEffect (source)</dfn>
47204720
:: Creates a new {{KeyframeEffect}} object with the same properties
4721-
as {{KeyframeEffect/KeyframeEffect(source)/source}}
4721+
as {{KeyframeEffect/constructor(source)/source}}
47224722
using the following procedure:
47234723

47244724
1. Create a new {{KeyframeEffect}} object, <var>effect</var>.
@@ -4739,9 +4739,10 @@ interface KeyframeEffect : AnimationEffect {
47394739
* [=playback direction=], and
47404740
* [=timing function=].
47414741

4742-
Note: Unlike the {{KeyframeEffect(target, keyframes,
4743-
options)}} constructor, we do not need to re-throw exceptions since the
4744-
timing properties specified on |source| can be assumed to be valid.
4742+
Note: Unlike the
4743+
{{KeyframeEffect(target, keyframes, options)}} constructor,
4744+
we do not need to re-throw exceptions since the timing properties
4745+
specified on |source| can be assumed to be valid.
47454746

47464747
<div class="parameters">
47474748

@@ -5829,9 +5830,9 @@ CSSPseudoElement includes Animatable;
58295830
{{AnimationPlaybackEvent}} interface.
58305831

58315832
<pre class='idl'>
5832-
[Exposed=Window,
5833-
Constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict = {})]
5833+
[Exposed=Window]
58345834
interface AnimationPlaybackEvent : Event {
5835+
constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict = {});
58355836
readonly attribute double? currentTime;
58365837
readonly attribute double? timelineTime;
58375838
};

0 commit comments

Comments
 (0)