From 0634e3860276d4eb654123ce080896a4ff8c3a9a Mon Sep 17 00:00:00 2001 From: autokagami Date: Tue, 24 Sep 2019 14:01:27 +0900 Subject: [PATCH] [web-animations-1] Align with Web IDL specification --- web-animations-1/Overview.bs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/web-animations-1/Overview.bs b/web-animations-1/Overview.bs index 3a62dbb6615..642d0cde82a 100644 --- a/web-animations-1/Overview.bs +++ b/web-animations-1/Overview.bs @@ -3902,9 +3902,9 @@ dictionary DocumentTimelineOptions { DOMHighResTimeStamp originTime = 0; }; -[Exposed=Window, - Constructor(optional DocumentTimelineOptions options = {})] +[Exposed=Window] interface DocumentTimeline : AnimationTimeline { + constructor(optional DocumentTimelineOptions options = {}); }; @@ -3945,10 +3945,10 @@ interface DocumentTimeline : AnimationTimeline { API by the {{Animation}} interface.
-[Exposed=Window,
- Constructor(optional AnimationEffect? effect = null,
-             optional AnimationTimeline? timeline)]
+[Exposed=Window]
 interface Animation : EventTarget {
+             constructor(optional AnimationEffect? effect = null,
+             optional AnimationTimeline? timeline);
              attribute DOMString                id;
              attribute AnimationEffect?         effect;
     readonly attribute AnimationTimeline?       timeline;
@@ -4635,12 +4635,12 @@ dictionary ComputedEffectTiming : EffectTiming {
 Keyframe effects are represented by the {{KeyframeEffect}} interface.
 
 
-[Exposed=Window,
- Constructor((Element or CSSPseudoElement)? target,
-             object? keyframes,
-             optional (unrestricted double or KeyframeEffectOptions) options = {}),
- Constructor(KeyframeEffect source)]
+[Exposed=Window]
 interface KeyframeEffect : AnimationEffect {
+    constructor((Element or CSSPseudoElement)? target,
+             object? keyframes,
+             optional (unrestricted double or KeyframeEffectOptions) options = {});
+    constructor(KeyframeEffect source);
     attribute (Element or CSSPseudoElement)? target;
     attribute CompositeOperation             composite;
     sequence<object> getKeyframes();
@@ -5829,9 +5829,9 @@ CSSPseudoElement includes Animatable;
 {{AnimationPlaybackEvent}} interface.
 
 
-[Exposed=Window,
- Constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict = {})]
+[Exposed=Window]
 interface AnimationPlaybackEvent : Event {
+    constructor(DOMString type, optional AnimationPlaybackEventInit eventInitDict = {});
     readonly attribute double? currentTime;
     readonly attribute double? timelineTime;
 };