Tue, 23 Apr 2013 12:35:55 +0200
[cssom-view] Don't check for Infinity/-Infinity/NaN since WebIDL does that (missed an instance)
cssom-view/Overview.html | file | annotate | diff | comparison | revisions | |
cssom-view/idl/Window.idl | file | annotate | diff | comparison | revisions |
1.1 --- a/cssom-view/Overview.html Tue Apr 23 12:14:41 2013 +0200 1.2 +++ b/cssom-view/Overview.html Tue Apr 23 12:35:55 2013 +0200 1.3 @@ -316,7 +316,7 @@ 1.4 <dt class="method" id="widl-Window-scroll-void-long-x-long-y"> 1.5 <code>scroll</code> (<span class="idlParam"><span class="idlParamType"><a>long</a></span> <span class="idlParamName">x</span></span>, <span class="idlParam"><span class="idlParamType"><a>long</a></span> <span class="idlParamName">y</span></span>), returns <span class="idlMethType"><a>void</a></span></dt> 1.6 <dd> 1.7 -<p>When the <code>scroll</code> operation is invoked these steps must be run:</p> <ol> <li><p>If either <var title="">x</var> or <var title="">y</var> is infinite or NaN terminate this algorithm.</li> <li> <dl> <dt>If <a href="#document-content">document content</a> can have overflow to the right <dd><p>Let <var title="">x</var> be max(0, min(<var title="">x</var>, <a href="#content">content</a> width - <a href="#content-edge">content edge</a> width)).</dd> <dt>If <a href="#document-content">document content</a> can have overflow to the left (under right-to-left conditions) <dd><p>Let <var title="">x</var> be min(0, max(<var title="">x</var>, <a href="#content-edge">content edge</a> width - <a href="#content">content</a> width)).</dd> </dl> </li> <li><p>Let <var title="">y</var> be max(0, min(<var title="">y</var>, <a href="#document-content">document content</a> height - <a href="#viewport">viewport</a> height excluding the size of a rendered scroll bar (if any))).</li> <li><p>Align the x-coordinate <var title="">x</var> of the <a href="#document-content">document content</a> with the left of the <a href="#viewport">viewport</a> and align the y-coordinate <var title="">y</var> of the <a href="#document-content">document content</a> with the top of the <a href="#viewport">viewport</a>.</li> <li><p>If the aligning caused content to move <a class="external" href="http://dev.w3.org/html5/spec/single-page.html#queue-a-task">queue a task</a> to <a class="external" href="http://dom.spec.whatwg.org/#concept-event-fire" title="concept-event-fire">fire an event</a> named <code title="event-scroll">scroll</code> that bubbles at the <code class="external"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> object, unless a <a class="external" href="http://dev.w3.org/html5/spec/single-page.html#concept-task" title="concept-task">task</a> to fire that event at the <code class="external"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> object was already <a class="external" href="http://dev.w3.org/html5/spec/single-page.html#queue-a-task" title="queue a task">queued</a>.</li> </ol></dd> 1.8 +<p>When the <code>scroll</code> operation is invoked these steps must be run:</p> <ol> <li> <dl> <dt>If <a href="#document-content">document content</a> can have overflow to the right <dd><p>Let <var title="">x</var> be max(0, min(<var title="">x</var>, <a href="#content">content</a> width - <a href="#content-edge">content edge</a> width)).</dd> <dt>If <a href="#document-content">document content</a> can have overflow to the left (under right-to-left conditions) <dd><p>Let <var title="">x</var> be min(0, max(<var title="">x</var>, <a href="#content-edge">content edge</a> width - <a href="#content">content</a> width)).</dd> </dl> </li> <li><p>Let <var title="">y</var> be max(0, min(<var title="">y</var>, <a href="#document-content">document content</a> height - <a href="#viewport">viewport</a> height excluding the size of a rendered scroll bar (if any))).</li> <li><p>Align the x-coordinate <var title="">x</var> of the <a href="#document-content">document content</a> with the left of the <a href="#viewport">viewport</a> and align the y-coordinate <var title="">y</var> of the <a href="#document-content">document content</a> with the top of the <a href="#viewport">viewport</a>.</li> <li><p>If the aligning caused content to move <a class="external" href="http://dev.w3.org/html5/spec/single-page.html#queue-a-task">queue a task</a> to <a class="external" href="http://dom.spec.whatwg.org/#concept-event-fire" title="concept-event-fire">fire an event</a> named <code title="event-scroll">scroll</code> that bubbles at the <code class="external"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> object, unless a <a class="external" href="http://dev.w3.org/html5/spec/single-page.html#concept-task" title="concept-task">task</a> to fire that event at the <code class="external"><a href="http://dom.spec.whatwg.org/#document">Document</a></code> object was already <a class="external" href="http://dev.w3.org/html5/spec/single-page.html#queue-a-task" title="queue a task">queued</a>.</li> </ol></dd> 1.9 <dt class="method" id="widl-Window-scrollTo-void-long-x-long-y"> 1.10 <code>scrollTo</code> (<span class="idlParam"><span class="idlParamType"><a>long</a></span> <span class="idlParamName">x</span></span>, <span class="idlParam"><span class="idlParamType"><a>long</a></span> <span class="idlParamName">y</span></span>), returns <span class="idlMethType"><a>void</a></span></dt> 1.11 <dd>
2.1 --- a/cssom-view/idl/Window.idl Tue Apr 23 12:14:41 2013 +0200 2.2 +++ b/cssom-view/idl/Window.idl Tue Apr 23 12:35:55 2013 +0200 2.3 @@ -63,7 +63,6 @@ 2.4 [Documentation= 2.5 "<p>When the {@name} {@type} is invoked these steps must be run:</p>\ 2.6 <ol>\ 2.7 - <li><p>If either <var title>x</var> or <var title>y</var> is infinite or NaN terminate this algorithm.</p></li>\ 2.8 <li>\ 2.9 <dl>\ 2.10 <dt>If <span>document content</span> can have overflow to the right\