Mon, 01 Oct 2012 17:17:58 -0700
[css3-animations] Remove legacy initAnimationEvent() metod; replace with DOM4 constructor (bug 15338)
css3-animations/Overview.html | file | annotate | diff | comparison | revisions | |
css3-animations/Overview.src.html | file | annotate | diff | comparison | revisions |
1.1 --- a/css3-animations/Overview.html Mon Oct 01 10:31:12 2012 -0700 1.2 +++ b/css3-animations/Overview.html Mon Oct 01 17:17:58 2012 -0700 1.3 @@ -7,10 +7,10 @@ 1.4 <link href="http://purl.org/dc/terms/" rel=schema.DC> 1.5 <meta content="CSS Animations" name=DC.title> 1.6 <meta content=text name=DC.type> 1.7 - <meta content=2012-10-01 name=DC.issued> 1.8 + <meta content=2012-10-02 name=DC.issued> 1.9 <meta content="http://dev.w3.org/csswg/css3-animations/" name=DC.creator> 1.10 <meta content=W3C name=DC.publisher> 1.11 - <meta content="http://www.w3.org/TR/2012/ED-css3-animations-20121001/" 1.12 + <meta content="http://www.w3.org/TR/2012/ED-css3-animations-20121002/" 1.13 name=DC.identifier> 1.14 <link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright" 1.15 rel=DC.rights> 1.16 @@ -29,14 +29,14 @@ 1.17 1.18 <h1>CSS Animations</h1> 1.19 1.20 - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 October 2012</h2> 1.21 + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 2 October 2012</h2> 1.22 1.23 <dl> 1.24 <dt>This version: 1.25 1.26 <dd><a 1.27 - href="http://www.w3.org/TR/2012/ED-css3-animations-20121001/">http://dev.w3.org/csswg/css3-animations/</a> 1.28 - <!--http://www.w3.org/TR/2012/WD-css3-animations-20121001/--> 1.29 + href="http://www.w3.org/TR/2012/ED-css3-animations-20121002/">http://dev.w3.org/csswg/css3-animations/</a> 1.30 + <!--http://www.w3.org/TR/2012/WD-css3-animations-20121002/--> 1.31 1.32 <dt>Latest version: 1.33 1.34 @@ -207,10 +207,6 @@ 1.35 1.36 <li><a href="#AnimationEvent-attributes"><span class=secno>4.1.2. 1.37 </span> Attributes</a> 1.38 - 1.39 - <li><a href="#AnimationEvent-initAnimationMethod"><span 1.40 - class=secno>4.1.3. </span> The <code>initAnimationEvent</code> 1.41 - method</a> 1.42 </ul> 1.43 1.44 <li><a href="#AnimationEvent-types"><span class=secno>4.2. </span> Types 1.45 @@ -1441,15 +1437,31 @@ 1.46 <h4 id=AnimationEvent-IDL><span class=secno>4.1.1. </span> IDL Definition</h4> 1.47 1.48 <pre class=idl> 1.49 -interface AnimationEvent : Event { 1.50 - readonly attribute DOMString animationName; 1.51 - readonly attribute float elapsedTime; 1.52 - void initAnimationEvent(in DOMString typeArg, 1.53 - in boolean canBubbleArg, 1.54 - in boolean cancelableArg, 1.55 - in DOMString animationNameArg, 1.56 - in float elapsedTimeArg); 1.57 -};</pre> 1.58 +[Constructor(DOMString <var 1.59 + title="">type</var>, optional <a 1.60 + href="#AnimationEventInit">AnimationEventInit</a> <var 1.61 + title="">eventInitDict</var>)] 1.62 +interface AnimationEvent : <a 1.63 + class=external 1.64 + href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event">Event</a> { 1.65 + readonly attribute DOMString <a 1.66 + href="#AnimationEvent-animationName" 1.67 + title=AnimationEvent-lengthComputable>animationName</a>; 1.68 + readonly attribute float <a 1.69 + href="#AnimationEvent-elapsedTime" 1.70 + title=dom-ProgressEvent-loaded>elapsedTime</a>; 1.71 +}; 1.72 + 1.73 +dictionary AnimationEventInit : <a 1.74 + class=external 1.75 + href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> { 1.76 + DOMString <span 1.77 + title=AnimationEventInit-animationName>animationName</span>; 1.78 + float <span 1.79 + title=AnimationEventInit-loaded>elapsedTime</span>; 1.80 +} 1.81 + 1.82 +</pre> 1.83 1.84 <h4 id=AnimationEvent-attributes><span class=secno>4.1.2. </span> 1.85 Attributes</h4> 1.86 @@ -1475,52 +1487,10 @@ 1.87 delay). 1.88 </dl> 1.89 1.90 - <h4 id=AnimationEvent-initAnimationMethod><span class=secno>4.1.3. </span> 1.91 - The <a href="#initanimationevent"><code>initAnimationEvent</code></a> 1.92 - method</h4> 1.93 - 1.94 - <p> The <dfn id=initanimationevent>initAnimationEvent</dfn> method is used 1.95 - to initialize the value of an <a 1.96 - href="#animationevent"><code>AnimationEvent</code></a> created through the 1.97 - <a 1.98 - href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-DocumentEvent"><code>DocumentEvent</code></a> 1.99 - interface. This method may only be called before the <a 1.100 - href="#animationevent"><code>AnimationEvent</code></a> has been dispatched 1.101 - via the <code>dispatchEvent</code> method, though it may be called 1.102 - multiple times during that phase if necessary. If called multiple times, 1.103 - the final invocation takes precedence. 1.104 - 1.105 - <p> Parameters: 1.106 - 1.107 - <dl> 1.108 - <dt><code>typeArg</code> of type <code>DOMString</code> 1.109 - 1.110 - <dd> Specifies the event type. 1.111 - 1.112 - <dt><code>canBubbleArg</code> of type <code>boolean</code> 1.113 - 1.114 - <dd> Specifies whether or not the event can bubble.<br> 1.115 - 1.116 - <dt><code>cancelableArg</code> of type <code>boolean</code> 1.117 - 1.118 - <dd> Specifies whether or not the event's default action can be prevented. 1.119 - 1.120 - <dt><code>animationNameArg</code> of type <code>DOMString</code> 1.121 - 1.122 - <dd> Specifies the <a 1.123 - href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event"><code>Event</code></a>‘<code 1.124 - class=css>s animation name.<br> 1.125 - </code> 1.126 - 1.127 - <dt><code>elapsedTimeArg</code> of type <code>float</code> 1.128 - 1.129 - <dd> Specifies the amount of time, in seconds, the animation has been 1.130 - running at the time of initialization. 1.131 - </dl> 1.132 - 1.133 - <p> No Return Value 1.134 - 1.135 - <p> No Exceptions 1.136 + <p> <code id=AnimationEvent-constructor>AnimationEvent(type, 1.137 + animEventDict)</code> is an <a class=external 1.138 + href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event 1.139 + constructor</a>. 1.140 1.141 <h3 id=AnimationEvent-types><span class=secno>4.2. </span> Types of <a 1.142 href="#animationevent"><code>AnimationEvent</code></a></h3> 1.143 @@ -1531,9 +1501,11 @@ 1.144 <dt><dfn id=animationstart>animationstart</dfn> 1.145 1.146 <dd> The <a href="#animationstart"><code>animationstart</code></a> event 1.147 - occurs at the start of the animation. If there is an ’animation-delay' 1.148 - then this event will fire once the delay period has expired. A negative 1.149 - delay will cause the event to fire with an <a 1.150 + occurs at the start of the animation. If there is an ‘<a 1.151 + href="#animation-delay"><code 1.152 + class=property>animation-delay</code></a>’ then this event will fire 1.153 + once the delay period has expired. A negative delay will cause the event 1.154 + to fire with an <a 1.155 href="#AnimationEvent-elapsedTime"><code>elapsedTime</code></a> equal to 1.156 the absolute value of the delay. 1.157 <ul> 1.158 @@ -2000,9 +1972,6 @@ 1.159 <li>elapsedTime, <a href="#AnimationEvent-elapsedTime" 1.160 title=elapsedTime><strong>4.1.2.</strong></a> 1.161 1.162 - <li>initAnimationEvent, <a href="#initanimationevent" 1.163 - title=initAnimationEvent><strong>4.1.3.</strong></a> 1.164 - 1.165 <li>keyframe declaration block, <a href="#keyframe-declaration-block" 1.166 title="keyframe declaration block"><strong>3.</strong></a> 1.167
2.1 --- a/css3-animations/Overview.src.html Mon Oct 01 10:31:12 2012 -0700 2.2 +++ b/css3-animations/Overview.src.html Mon Oct 01 17:17:58 2012 -0700 2.3 @@ -1047,15 +1047,18 @@ 2.4 IDL Definition</h4> 2.5 2.6 <pre class='idl'> 2.7 -interface AnimationEvent : Event { 2.8 - readonly attribute DOMString animationName; 2.9 - readonly attribute float elapsedTime; 2.10 - void initAnimationEvent(in DOMString typeArg, 2.11 - in boolean canBubbleArg, 2.12 - in boolean cancelableArg, 2.13 - in DOMString animationNameArg, 2.14 - in float elapsedTimeArg); 2.15 -};</pre> 2.16 +[Constructor(DOMString <var title="">type</var>, optional <a href="#AnimationEventInit">AnimationEventInit</a> <var title="">eventInitDict</var>)] 2.17 +interface AnimationEvent : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event">Event</a> { 2.18 + readonly attribute DOMString <a href="#AnimationEvent-animationName" title="AnimationEvent-lengthComputable">animationName</a>; 2.19 + readonly attribute float <a href="#AnimationEvent-elapsedTime" title="dom-ProgressEvent-loaded">elapsedTime</a>; 2.20 +}; 2.21 + 2.22 +dictionary AnimationEventInit : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> { 2.23 + DOMString <span title="AnimationEventInit-animationName">animationName</span>; 2.24 + float <span title="AnimationEventInit-loaded">elapsedTime</span>; 2.25 +} 2.26 + 2.27 +</pre> 2.28 2.29 2.30 <h4 id='AnimationEvent-attributes'> 2.31 @@ -1077,52 +1080,10 @@ 2.32 in which case the event will be fired with an <code>elapsedTime</code> of (-1 * delay). 2.33 </dl> 2.34 2.35 + <p> 2.36 + <code id="AnimationEvent-constructor">AnimationEvent(type, animEventDict)</code> 2.37 + is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event constructor</a>. 2.38 2.39 -<h4 id='AnimationEvent-initAnimationMethod'> 2.40 -The <code>initAnimationEvent</code> method</h4> 2.41 - 2.42 - <p> 2.43 - The <dfn>initAnimationEvent</dfn> method is used to initialize the value of an <code>AnimationEvent</code> 2.44 - created through the <a href='http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-DocumentEvent'><code>DocumentEvent</code></a> interface. 2.45 - This method may only be called before the <code>AnimationEvent</code> has been dispatched 2.46 - via the <code>dispatchEvent</code> method, 2.47 - though it may be called multiple times during that phase if necessary. 2.48 - If called multiple times, 2.49 - the final invocation takes precedence. 2.50 - 2.51 - <p> 2.52 - Parameters: 2.53 - 2.54 - <dl> 2.55 - <dt><code>typeArg</code> of type <code>DOMString</code> 2.56 - <dd> 2.57 - Specifies the event type. 2.58 - 2.59 - <dt><code>canBubbleArg</code> of type <code>boolean</code> 2.60 - <dd> 2.61 - Specifies whether or not the event can bubble.<br> 2.62 - 2.63 - <dt><code>cancelableArg</code> of type <code>boolean</code> 2.64 - <dd> 2.65 - Specifies whether or not the event's default action can be prevented. 2.66 - 2.67 - <dt><code>animationNameArg</code> of type <code>DOMString</code> 2.68 - <dd> 2.69 - Specifies the <a href='http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event'><code>Event</code></a>'s animation name.<br> 2.70 - 2.71 - <dt><code>elapsedTimeArg</code> of type <code>float</code> 2.72 - <dd> 2.73 - Specifies the amount of time, 2.74 - in seconds, 2.75 - the animation has been running at the time of initialization. 2.76 - </dl> 2.77 - 2.78 - <p> 2.79 - No Return Value 2.80 - 2.81 - <p> 2.82 - No Exceptions 2.83 - 2.84 <h3 id='AnimationEvent-types'> 2.85 Types of <code>AnimationEvent</code></h3> 2.86