Skip to content

Commit

Permalink
Shift stuff around
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Oct 17, 2021
1 parent 0f0f1c1 commit 490f0f6
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4092,7 +4092,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

<ul class="brief">
<li><dfn data-x-href="https://w3c.github.io/requestidlecallback/#the-requestidlecallback-method"><code>requestIdleCallback()</code></dfn></li>
<li><dfn data-x-href="https://w3c.github.io/requestidlecallback/#start-an-idle-period">start an idle period</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/requestidlecallback/#start-an-idle-period-algorithm">start an idle period algorithm</dfn></li>
</ul>
</dd>

Expand Down Expand Up @@ -9620,12 +9620,6 @@ partial interface <dfn id="document" data-lt="">Document</dfn> {
<dd><code>DOMHighResTimeStamp</code> values</dd>
</dl>

<p>A <code>Document</code> has a <code>DOMHighResTimeStamp</code> <span>suspension time</span>,
initially zero.</p>

<p>A <code>Document</code> has a <span>list</span> <span>suspended timer handles</span>,
initially empty.</p>

</div>


Expand Down Expand Up @@ -88831,6 +88825,12 @@ dictionary <dfn dictionary>PageTransitionEventInit</dfn> : <span>EventInit</span
data-x="event-pagehide">pagehide</code> events in a row without an intervening <code
data-x="event-pageshow">pageshow</code>, or vice versa).</p>

<p>A <code>Document</code> has a <code>DOMHighResTimeStamp</code> <dfn>suspension time</dfn>,
initially zero.</p>

<p>A <code>Document</code> has a <span>list</span> <dfn>suspended timer handles</dfn>,
initially empty.</p>

<p><span data-x="event loop">Event loops</span> have a <dfn>termination nesting level</dfn>
counter, which must initially be 0.</p>

Expand Down Expand Up @@ -93635,7 +93635,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>

<ol>
<li>
<p>Let <var>computeDeadline</var> be the following steps:</p>
<p>Let <var>computeDeadline</var> be the following steps:</p>

<ol>
<li>
Expand All @@ -93662,17 +93662,9 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
<span data-x="map get the values">getting the values</span> of
<var>windowInSameLoop</var>'s <span>map of active timers</span>.</p></li>

<li>
<p>For each <var>estimate</var> of <var>timerCallbackEstimates</var>:</p>

<ol>
<li><p>Let <var>timeoutDeadline</var> be the result of calling
<var>estimate</var>.</p></li>

<li><p>If <var>timeoutDeadline</var> is less than <var>deadline</var>, set
<var>deadline</var> to <var>timeoutDeadline</var>.</p></li>
</ol>
</li>
<li><p>For each <var>timeoutDeadline</var> of <var>timerCallbackEstimates</var>, if
<var>timeoutDeadline</var> is less than <var>deadline</var>, set
<var>deadline</var> to <var>timeoutDeadline</var>.</p></li>
</ol>
</li>

Expand All @@ -93681,7 +93673,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>

<ol>
<li><p>Let <var>nextRenderDeadline</var> be this <span>event loop</span>'s
<span>last render opportunity time</span> plus 16.</p></li>
<span>last render opportunity time</span> plus 1000 / 60.</p></li>

<li><p>If <var>nextRenderDeadline</var> is less than
<var>deadline</var>, then return <var>nextRenderDeadline</var>.</p></li>
Expand All @@ -93693,7 +93685,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>
</li>

<li><p>For each <var>win</var> of the <span>same-loop windows</span> for
this <span>event loop</span>, <span>start an idle period</span> for <var>win</var> with
this <span>event loop</span>, <span>start an idle period algorithm</span> for <var>win</var> with
<var>computeDeadline</var>. <ref spec=REQUESTIDLECALLBACK></p></li>
</ol>
</li>
Expand Down Expand Up @@ -96116,8 +96108,7 @@ enum <dfn enum>DOMParserSupportedType</dfn> {
<span data-x="map key">key</span> in this map is identified by a number, which must be unique
within the list for the lifetime of the object that implements the
<code>WindowOrWorkerGlobalScope</code> mixin, and each <span data-x="map value">value</span> is a
<code>DOMHighResTimeStamp</code>, representing the next earliest callback time for that
timer.</p>
<code>DOMHighResTimeStamp</code>, representing the expiry time for that timer.</p>

<p>To get the <dfn export>list of active timers</dfn> for <code>WindowOrWorkerGlobalScope</code>
<var>global</var>, return the result of <span data-x="map get the keys">getting
Expand Down

0 comments on commit 490f0f6

Please sign in to comment.