Skip to content

Commit

Permalink
Rename "report list" -> "report queue" (w3c#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmeyer90 authored and dcreager committed Jul 9, 2018
1 parent f6e72c5 commit b52e0a2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ <h3 id=interface-reporting-observer>Interface {{ReportingObserver}}</h3>
- A {{ReportingObserverOptions}} dictionary called
<dfn for=ReportingObserver>options</dfn>.
- A list of {{Report}} objects called the <dfn for=ReportingObserver>report
list</dfn>, which is initially empty.
queue</dfn>, which is initially empty.

A {{ReportList}} represents a sequence of {{Report}}s, providing developers
with all the convenience methods found on JavaScript arrays.
Expand Down Expand Up @@ -1054,9 +1054,9 @@ <h3 id=interface-reporting-observer>Interface {{ReportingObserver}}</h3>
The <dfn method for=ReportingObserver><code>takeRecords()</code></dfn> method,
when invoked, must run these steps:

1. Let |reports| be a copy of the <a>context object</a>'s <a>report list</a>.
1. Let |reports| be a copy of the <a>context object</a>'s <a>report queue</a>.

2. Empty the <a>context object</a>'s <a>report list</a>.
2. Empty the <a>context object</a>'s <a>report queue</a>.

3. Return |reports|.

Expand All @@ -1081,7 +1081,7 @@ <h3 id="add-report" algorithm>
</h3>

Given a <a>report</a> |report| and a {{ReportingObserver}} |observer|, this
algorithm adds |report| to |observer|'s <a>report list</a>, so long as
algorithm adds |report| to |observer|'s <a>report queue</a>, so long as
|report|'s <a>type</a> is observable by |observer|.

1. If |report|'s [=report/type=] is not <a>visible to
Expand All @@ -1097,11 +1097,11 @@ <h3 id="add-report" algorithm>

Issue: how to polymorphically initialize body?

3. Append |r| to |observer|'s <a>report list</a>.
3. Append |r| to |observer|'s <a>report queue</a>.

4. If the size of |observer|'s <a>report list</a> is 1, <a>Queue a task</a> to
[[#invoke-observers]] with a copy of the <a>registered reporting observer
list</a> of the <a spec=ecmascript lt=realm>ECMAScript global
4. If the size of |observer|'s <a>report queue</a> is 1, <a>Queue a task</a>
to [[#invoke-observers]] with a copy of the <a>registered reporting
observer list</a> of the <a spec=ecmascript lt=realm>ECMAScript global
environment</a> associated with |observer|.

<h3 id="invoke-observers" algorthm>
Expand All @@ -1113,11 +1113,11 @@ <h3 id="invoke-observers" algorthm>

1. For each {{ReportingObserver}} |observer| in |notify list|:

1. If |observer|'s <a>report list</a> is empty, then continue.
1. If |observer|'s <a>report queue</a> is empty, then continue.

2. Let |reports| be a copy of |observer|'s <a>report list</a>
2. Let |reports| be a copy of |observer|'s <a>report queue</a>

3. Empty |observer|'s <a>report list</a>
3. Empty |observer|'s <a>report queue</a>

4. <a spec=webidl>Invoke</a> |observer|'s <a>callback</a> with a list of
arguments consisting of |reports| and |observer|, and |observer| as the
Expand Down

0 comments on commit b52e0a2

Please sign in to comment.