1.1 --- a/css3-animations/Overview.src.html Mon Oct 01 10:31:12 2012 -0700 1.2 +++ b/css3-animations/Overview.src.html Mon Oct 01 17:17:58 2012 -0700 1.3 @@ -1047,15 +1047,18 @@ 1.4 IDL Definition</h4> 1.5 1.6 <pre class='idl'> 1.7 -interface AnimationEvent : Event { 1.8 - readonly attribute DOMString animationName; 1.9 - readonly attribute float elapsedTime; 1.10 - void initAnimationEvent(in DOMString typeArg, 1.11 - in boolean canBubbleArg, 1.12 - in boolean cancelableArg, 1.13 - in DOMString animationNameArg, 1.14 - in float elapsedTimeArg); 1.15 -};</pre> 1.16 +[Constructor(DOMString <var title="">type</var>, optional <a href="#AnimationEventInit">AnimationEventInit</a> <var title="">eventInitDict</var>)] 1.17 +interface AnimationEvent : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event">Event</a> { 1.18 + readonly attribute DOMString <a href="#AnimationEvent-animationName" title="AnimationEvent-lengthComputable">animationName</a>; 1.19 + readonly attribute float <a href="#AnimationEvent-elapsedTime" title="dom-ProgressEvent-loaded">elapsedTime</a>; 1.20 +}; 1.21 + 1.22 +dictionary AnimationEventInit : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> { 1.23 + DOMString <span title="AnimationEventInit-animationName">animationName</span>; 1.24 + float <span title="AnimationEventInit-loaded">elapsedTime</span>; 1.25 +} 1.26 + 1.27 +</pre> 1.28 1.29 1.30 <h4 id='AnimationEvent-attributes'> 1.31 @@ -1077,52 +1080,10 @@ 1.32 in which case the event will be fired with an <code>elapsedTime</code> of (-1 * delay). 1.33 </dl> 1.34 1.35 + <p> 1.36 + <code id="AnimationEvent-constructor">AnimationEvent(type, animEventDict)</code> 1.37 + is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event constructor</a>. 1.38 1.39 -<h4 id='AnimationEvent-initAnimationMethod'> 1.40 -The <code>initAnimationEvent</code> method</h4> 1.41 - 1.42 - <p> 1.43 - The <dfn>initAnimationEvent</dfn> method is used to initialize the value of an <code>AnimationEvent</code> 1.44 - created through the <a href='http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-DocumentEvent'><code>DocumentEvent</code></a> interface. 1.45 - This method may only be called before the <code>AnimationEvent</code> has been dispatched 1.46 - via the <code>dispatchEvent</code> method, 1.47 - though it may be called multiple times during that phase if necessary. 1.48 - If called multiple times, 1.49 - the final invocation takes precedence. 1.50 - 1.51 - <p> 1.52 - Parameters: 1.53 - 1.54 - <dl> 1.55 - <dt><code>typeArg</code> of type <code>DOMString</code> 1.56 - <dd> 1.57 - Specifies the event type. 1.58 - 1.59 - <dt><code>canBubbleArg</code> of type <code>boolean</code> 1.60 - <dd> 1.61 - Specifies whether or not the event can bubble.<br> 1.62 - 1.63 - <dt><code>cancelableArg</code> of type <code>boolean</code> 1.64 - <dd> 1.65 - Specifies whether or not the event's default action can be prevented. 1.66 - 1.67 - <dt><code>animationNameArg</code> of type <code>DOMString</code> 1.68 - <dd> 1.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> 1.70 - 1.71 - <dt><code>elapsedTimeArg</code> of type <code>float</code> 1.72 - <dd> 1.73 - Specifies the amount of time, 1.74 - in seconds, 1.75 - the animation has been running at the time of initialization. 1.76 - </dl> 1.77 - 1.78 - <p> 1.79 - No Return Value 1.80 - 1.81 - <p> 1.82 - No Exceptions 1.83 - 1.84 <h3 id='AnimationEvent-types'> 1.85 Types of <code>AnimationEvent</code></h3> 1.86