- From: poot <cvsmail@w3.org>
- Date: Tue, 05 Jun 2012 18:00:01 -0400
- To: public-html-diffs@w3.org
hixie: Simplify the TextTrackCue constructor now that the object's properties are all mutable. (whatwg r7120) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5672&r2=1.5673&f=h http://html5.org/tools/web-apps-tracker?from=7119&to=7120 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5672 retrieving revision 1.5673 diff -u -d -r1.5672 -r1.5673 --- Overview.html 5 Jun 2012 21:12:13 -0000 1.5672 +++ Overview.html 5 Jun 2012 21:59:48 -0000 1.5673 @@ -31820,7 +31820,7 @@ </div> <hr><pre class="idl"> -[<a href="#dom-texttrackcue" title="dom-TextTrackCue">Constructor</a>(DOMString id, double startTime, double endTime, DOMString text, optional DOMString settings, optional boolean pauseOnExit)] +[<a href="#dom-texttrackcue" title="dom-TextTrackCue">Constructor</a>(double startTime, double endTime, DOMString text)] interface <dfn id="texttrackcue">TextTrackCue</dfn> : <a href="#eventtarget">EventTarget</a> { readonly attribute <a href="#texttrack">TextTrack</a>? <a href="#dom-texttrackcue-track" title="dom-TextTrackCue-track">track</a>; @@ -31841,15 +31841,12 @@ [TreatNonCallableAsNull] attribute <a href="#function">Function</a>? <a href="#handler-texttrackcue-onexit" title="handler-TextTrackCue-onexit">onexit</a>; };</pre> - <dl class="domintro"><dt><var title="">cue</var> = new <code title="dom-TextTrackCue"><a href="#dom-texttrackcue">TextTrackCue</a></code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">pauseOnExit</var> ] ] )</dt> + <dl class="domintro"><dt><var title="">cue</var> = new <code title="dom-TextTrackCue"><a href="#dom-texttrackcue">TextTrackCue</a></code>( <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> )</dt> <dd> <p>Returns a new <code><a href="#texttrackcue">TextTrackCue</a></code> object, for use with the <code title="dom-TextTrack-addCue"><a href="#dom-texttrack-addcue">addCue()</a></code> method.</p> - <p>The <var title="">id</var> argument sets the <a href="#text-track-cue-identifier">text track cue identifier</a>.</p> <p>The <var title="">startTime</var> argument sets the <a href="#text-track-cue-start-time">text track cue start time</a>.</p> <p>The <var title="">endTime</var> argument sets the <a href="#text-track-cue-end-time">text track cue end time</a>.</p> <p>The <var title="">text</var> argument sets the <a href="#text-track-cue-text">text track cue text</a>.</p> - <p>The <var title="">settings</var> argument is a string in the format of <a href="#webvtt-cue-settings">WebVTT cue settings</a>. If omitted, the empty string is assumed.</p> - <p>The <var title="">pauseOnExit</var> argument sets the <a href="#text-track-cue-pause-on-exit-flag">text track cue pause-on-exit flag</a>. If omitted, false is assumed.</p> </dd> <dt><var title="">cue</var> . <a href="#dom-texttrackcue-track" title="dom-TextTrackCue-track">track</a></dt> @@ -31946,16 +31943,12 @@ </dl><div class="impl"> - <p>The <dfn id="dom-texttrackcue" title="dom-TextTrackCue"><code>TextTrackCue(<var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var>, <var title="">settings</var>, <var title="">pauseOnExit</var>)</code></dfn> constructor, when invoked, - must run the following steps:</p> + <p>The <dfn id="dom-texttrackcue" title="dom-TextTrackCue"><code>TextTrackCue(<var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var>)</code></dfn> constructor, when invoked, must + run the following steps:</p> <ol><li><p>Create a new <a href="#text-track-cue">text track cue</a> that is not associated with any <a href="#text-track">text track</a>. Let <var title="">cue</var> be that <a href="#text-track-cue">text track cue</a>.</li> - <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-identifier">text track cue - identifier</a> be the value of the <var title="">id</var> - argument.</li> - <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-start-time">text track cue start time</a> be the value of the <var title="">startTime</var> argument, interpreted as a time in seconds.</li> @@ -31964,10 +31957,6 @@ time</a> be the value of the <var title="">endTime</var> argument, interpreted as a time in seconds.</li> - <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-pause-on-exit-flag">text track cue - pause-on-exit flag</a> be true if the <var title="">pauseOnExit</var> is present and true. Otherwise, let it - be false.</li> - <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-text">text track cue text</a> be the value of the <var title="">text</var> argument, and let the rules for its interpretation be the <a href="#webvtt-cue-text-parsing-rules">WebVTT cue @@ -31977,6 +31966,12 @@ + <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-identifier">text track cue + identifier</a> be the empty string.</li> + + <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-pause-on-exit-flag">text track cue + pause-on-exit flag</a> be false.</li> + <li><p>Let <var title="">cue</var>'s <a href="#text-track-cue-writing-direction">text track cue writing direction</a> be <a href="#text-track-cue-horizontal-writing-direction" title="text track cue horizontal writing direction">horizontal</a>.</li> @@ -31998,8 +31993,6 @@ alignment</a> be <a href="#text-track-cue-middle-alignment" title="text track cue middle alignment">middle alignment</a>.</li> - <li><p><a href="#parse-the-webvtt-settings">Parse the WebVTT settings</a> given by the <var title="">settings</var> argument for <var title="">cue</var>. <a href="#refsWEBVTT">[WEBVTT]</a></li> - <li><p>Return the <code><a href="#texttrackcue">TextTrackCue</a></code> object representing <var title="">cue</var>.</li>
Received on Tuesday, 5 June 2012 22:00:07 UTC