[html5] r7120 - [giow] (0) Simplify the TextTrackCue constructor now that the object's propertie [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jun 5 14:59:43 PDT 2012
Author: ianh
Date: 2012-06-05 14:59:42 -0700 (Tue, 05 Jun 2012)
New Revision: 7120
Modified:
complete.html
index
source
Log:
[giow] (0) Simplify the TextTrackCue constructor now that the object's properties are all mutable.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=16076
Affected topics: Video Text Tracks
Modified: complete.html
===================================================================
--- complete.html 2012-06-05 21:12:06 UTC (rev 7119)
+++ complete.html 2012-06-05 21:59:42 UTC (rev 7120)
@@ -33946,7 +33946,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>;
@@ -33967,15 +33967,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>
@@ -34072,16 +34069,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>
@@ -34090,10 +34083,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
@@ -34103,6 +34092,12 @@
<!-- default settings -->
+ <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>
@@ -34124,8 +34119,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>
Modified: index
===================================================================
--- index 2012-06-05 21:12:06 UTC (rev 7119)
+++ index 2012-06-05 21:59:42 UTC (rev 7120)
@@ -33946,7 +33946,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>;
@@ -33967,15 +33967,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>
@@ -34072,16 +34069,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>
@@ -34090,10 +34083,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
@@ -34103,6 +34092,12 @@
<!-- default settings -->
+ <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>
@@ -34124,8 +34119,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>
Modified: source
===================================================================
--- source 2012-06-05 21:12:06 UTC (rev 7119)
+++ source 2012-06-05 21:59:42 UTC (rev 7120)
@@ -37190,7 +37190,7 @@
<hr>
<pre class="idl">
-[<span title="dom-TextTrackCue">Constructor</span>(DOMString id, double startTime, double endTime, DOMString text, optional DOMString settings, optional boolean pauseOnExit)]
+[<span title="dom-TextTrackCue">Constructor</span>(double startTime, double endTime, DOMString text)]
interface <dfn>TextTrackCue</dfn> : <span>EventTarget</span> {
readonly attribute <span>TextTrack</span>? <span title="dom-TextTrackCue-track">track</span>;
@@ -37213,15 +37213,12 @@
<dl class="domintro">
- <dt><var title="">cue</var> = new <code title="dom-TextTrackCue">TextTrackCue</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>
+ <dt><var title="">cue</var> = new <code title="dom-TextTrackCue">TextTrackCue</code>( <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> )</dt>
<dd>
<p>Returns a new <code>TextTrackCue</code> object, for use with the <code title="dom-TextTrack-addCue">addCue()</code> method.</p>
- <p>The <var title="">id</var> argument sets the <span>text track cue identifier</span>.</p>
<p>The <var title="">startTime</var> argument sets the <span>text track cue start time</span>.</p>
<p>The <var title="">endTime</var> argument sets the <span>text track cue end time</span>.</p>
<p>The <var title="">text</var> argument sets the <span>text track cue text</span>.</p>
- <p>The <var title="">settings</var> argument is a string in the format of <span>WebVTT cue settings</span>. If omitted, the empty string is assumed.</p>
- <p>The <var title="">pauseOnExit</var> argument sets the <span>text track cue pause-on-exit flag</span>. If omitted, false is assumed.</p>
</dd>
<dt><var title="">cue</var> . <span title="dom-TextTrackCue-track">track</span></dt>
@@ -37325,11 +37322,9 @@
<div class="impl">
<p>The <dfn 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>
+ title="">startTime</var>, <var title="">endTime</var>, <var
+ title="">text</var>)</code></dfn> constructor, when invoked, must
+ run the following steps:</p>
<ol>
@@ -37337,10 +37332,6 @@
associated with any <span>text track</span>. Let <var
title="">cue</var> be that <span>text track cue</span>.</p></li>
- <li><p>Let <var title="">cue</var>'s <span>text track cue
- identifier</span> be the value of the <var title="">id</var>
- argument.</p></li>
-
<li><p>Let <var title="">cue</var>'s <span>text track cue start
time</span> be the value of the <var title="">startTime</var>
argument, interpreted as a time in seconds.</p></li>
@@ -37350,11 +37341,6 @@
argument, interpreted as a time in seconds.</p></li>
<li><p>Let <var title="">cue</var>'s <span>text track cue
- pause-on-exit flag</span> be true if the <var
- title="">pauseOnExit</var> is present and true. Otherwise, let it
- be false.</p></li>
-
- <li><p>Let <var title="">cue</var>'s <span>text track cue
text</span> be the value of the <var title="">text</var> argument,
and let the rules for its interpretation be the <span>WebVTT cue
text parsing rules</span>, the <span>WebVTT cue text rendering
@@ -37364,6 +37350,12 @@
<!-- default settings -->
<li><p>Let <var title="">cue</var>'s <span>text track cue
+ identifier</span> be the empty string.</p></li>
+
+ <li><p>Let <var title="">cue</var>'s <span>text track cue
+ pause-on-exit flag</span> be false.</p></li>
+
+ <li><p>Let <var title="">cue</var>'s <span>text track cue
writing direction</span> be <span title="text track cue
horizontal writing direction">horizontal</span>.</p></li>
@@ -37384,10 +37376,6 @@
alignment</span> be <span title="text track cue middle
alignment">middle alignment</span>.</p></li>
- <li><p><span>Parse the WebVTT settings</span> given by the <var
- title="">settings</var> argument for <var title="">cue</var>. <a
- href="#refsWEBVTT">[WEBVTT]</a></p></li>
-
<li><p>Return the <code>TextTrackCue</code> object representing
<var title="">cue</var>.</p></li>
More information about the Commit-Watchers
mailing list