diff --git a/index.src.html b/index.src.html
index 6f5282dc..b6aee7be 100644
--- a/index.src.html
+++ b/index.src.html
@@ -485,7 +485,7 @@
algorithm with |decoded outputs|.
2. Remove |promise| from
{{AudioDecoder/[[pending flush promises]]}}.
- 3. Resolve |promise|.
+ 3. [=Resolve=] |promise|.
2. Return `"processed"`.
@@ -534,7 +534,7 @@
1. Set {{AudioDecoderSupport/config}} to the result of running the
Clone Configuration algorithm with |config|.
2. Set {{AudioDecoderSupport/supported}} to |supported|.
- 2. Resolve |p| with |decoderSupport|.
+ 2. [=Resolve=] |p| with |decoderSupport|.
5. Return |p|.
@@ -584,7 +584,7 @@
1. Set {{AudioDecoder/[[decodeQueueSize]]}} to zero.
2. Run the [=AudioDecoder/Schedule Dequeue Event=] algorithm.
6. For each |promise| in {{AudioDecoder/[[pending flush promises]]}}:
- 1. Reject |promise| with |exception|.
+ 1. [=Reject=] |promise| with |exception|.
2. Remove |promise| from {{AudioDecoder/[[pending flush promises]]}}.
Close AudioDecoder (with |exception|)
@@ -831,7 +831,7 @@
algorithm with |decoded outputs|.
2. Remove |promise| from
{{VideoDecoder/[[pending flush promises]]}}.
- 3. Resolve |promise|.
+ 3. [=Resolve=] |promise|.
2. Return `"processed"`.
@@ -880,7 +880,7 @@
1. Set {{VideoDecoderSupport/config}} to the result of running the
Clone Configuration algorithm with |config|.
2. Set {{VideoDecoderSupport/supported}} to |supported|.
- 2. Resolve |p| with |decoderSupport|.
+ 2. [=Resolve=] |p| with |decoderSupport|.
5. Return |p|.
@@ -943,7 +943,7 @@
1. Set {{VideoDecoder/[[decodeQueueSize]]}} to zero.
2. Run the [=VideoDecoder/Schedule Dequeue Event=] algorithm.
6. For each |promise| in {{VideoDecoder/[[pending flush promises]]}}:
- 1. Reject |promise| with |exception|.
+ 1. [=Reject=] |promise| with |exception|.
2. Remove |promise| from {{VideoDecoder/[[pending flush promises]]}}.
Close VideoDecoder (with |exception|)
@@ -1173,7 +1173,7 @@
[=Output EncodedAudioChunks=] algorithm with |encoded outputs|.
2. Remove |promise| from
{{AudioEncoder/[[pending flush promises]]}}.
- 3. Resolve |promise|.
+ 3. [=Resolve=] |promise|.
2. Return `"processed"`.
@@ -1222,7 +1222,7 @@
1. Set {{AudioEncoderSupport/config}} to the result of running the
Clone Configuration algorithm with |config|.
2. Set {{AudioEncoderSupport/supported}} to |supported|.
- 2. Resolve |p| with |encoderSupport|.
+ 2. [=Resolve=] |p| with |encoderSupport|.
5. Return |p|.
@@ -1302,7 +1302,7 @@
1. Set {{AudioEncoder/[[encodeQueueSize]]}} to zero.
2. Run the [=AudioEncoder/Schedule Dequeue Event=] algorithm.
8. For each |promise| in {{AudioEncoder/[[pending flush promises]]}}:
- 1. Reject |promise| with |exception|.
+ 1. [=Reject=] |promise| with |exception|.
2. Remove |promise| from {{AudioEncoder/[[pending flush promises]]}}.
Close AudioEncoder (with |exception|)
@@ -1559,7 +1559,7 @@
[=Output EncodedVideoChunks=] algorithm with |encoded outputs|.
2. Remove |promise| from
{{VideoEncoder/[[pending flush promises]]}}.
- 3. Resolve |promise|.
+ 3. [=Resolve=] |promise|.
2. Return `"processed"`.
@@ -1608,7 +1608,7 @@
1. Set {{VideoEncoderSupport/config}} to the result of running the
Clone Configuration algorithm with |config|.
2. Set {{VideoEncoderSupport/supported}} to |supported|.
- 2. Resolve |p| with |encoderSupport|.
+ 2. [=Resolve=] |p| with |encoderSupport|.
5. Return |p|.
@@ -1707,7 +1707,7 @@
1. Set {{VideoEncoder/[[encodeQueueSize]]}} to zero.
2. Run the [=VideoEncoder/Schedule Dequeue Event=] algorithm.
8. For each |promise| in {{VideoEncoder/[[pending flush promises]]}}:
- 1. Reject |promise| with |exception|.
+ 1. [=Reject=] |promise| with |exception|.
2. Remove |promise| from {{VideoEncoder/[[pending flush promises]]}}.
Close VideoEncoder (with |exception|)
@@ -3907,7 +3907,7 @@
4. Increment |row| by `1`.
10. Increment |planeIndex| by `1`.
11. Append |layout| to |planeLayouts|.
- 5. [=Queue a task=] to resolve |p| with |planeLayouts|.
+ 5. [=Queue a task=] to [=resolve=] |p| with |planeLayouts|.
11. Return |p|.
: clone()
@@ -5473,7 +5473,7 @@
3. Otherwise:
1. Assign a copy of `init.data` to {{ImageDecoder/[[encoded data]]}}.
4. Assign `true` to {{ImageDecoder/[[complete]]}}.
- 5. Resolve {{ImageDecoder/[[completed promise]]}}.
+ 5. [=Resolve=] {{ImageDecoder/[[completed promise]]}}.
6. Queue a control message to [=configure the image decoder=] with
|init|.
7. Queue a control message to [=decode track metadata=].
@@ -5589,7 +5589,7 @@
3. Run the following steps [=in parallel=]:
1. Let |isSupported| be the result of running the
[=Check Type Support=] algorithm with |type|.
- 2. [=Queue a task=] to resolve |p| with |isSupported|.
+ 2. [=Queue a task=] to [=resolve=] |p| with |isSupported|.
4. Return |p|.
### Algorithms ### {#imagedecoder-algorithms}
@@ -5614,7 +5614,7 @@
: [=read request/close steps=]
:: 1. Assign `true` to {{ImageDecoder/[[complete]]}}
- 2. Resolve {{ImageDecoder/[[completed promise]]}}.
+ 2. [=Resolve=] {{ImageDecoder/[[completed promise]]}}.
: [=read request/error steps=]
:: 1. [=Queue a task=] to run the [=ImageDecoder/Close ImageDecoder=]
@@ -5676,7 +5676,7 @@
{{ImageTrackList/[[track list]]}} internal slot.
2. Assign |selectedTrackIndex| to {{ImageDecoder/tracks}}
{{ImageTrackList/[[selected index]]}}.
- 3. Resolve {{ImageTrackList/[[ready promise]]}}.
+ 3. [=Resolve=] {{ImageTrackList/[[ready promise]]}}.
: Get Default Selected Track Index (with
|trackList|)
@@ -5851,7 +5851,7 @@
[=Create a VideoFrame=] algorithm with |output|, |timestamp|,
|duration|, |rotation|, and |flip|.
19. Remove |promise| from {{ImageDecoder/[[pending decode promises]]}}.
- 20. Resolve |promise| with |decodeResult|.
+ 20. [=Resolve=] |promise| with |decodeResult|.
: Resolve Decode (with |promise| and |result|)
:: 1. [=Queue a task=] to perform these steps:
@@ -5859,7 +5859,7 @@
2. Assert that |promise| is an element of
{{ImageDecoder/[[pending decode promises]]}}.
3. Remove |promise| from {{ImageDecoder/[[pending decode promises]]}}.
- 4. Resolve |promise| with |result|.
+ 4. [=Resolve=] |promise| with |result|.
: Reject Infeasible Decode (with |promise|)
:: 1. Assert that {{ImageDecoder/complete}} is `true` or
@@ -5872,7 +5872,7 @@
2. Assert that |promise| is an element of
{{ImageDecoder/[[pending decode promises]]}}.
3. Remove |promise| from {{ImageDecoder/[[pending decode promises]]}}.
- 4. Reject |promise| with |exception|.
+ 4. [=Reject=] |promise| with |exception|.
: Fatally Reject Bad Data
:: 1. [=Queue a task=] to perform these steps:
@@ -5890,7 +5890,7 @@
decoding operation.
2. For each |decodePromise| in
{{ImageDecoder/[[pending decode promises]]}}:
- 1. Reject |decodePromise| with |exception|.
+ 1. [=Reject=] |decodePromise| with |exception|.
2. Remove |decodePromise| from
{{ImageDecoder/[[pending decode promises]]}}.
@@ -5899,13 +5899,13 @@
1. Assign `true` to {{ImageDecoder/[[closed]]}}.
2. Clear {{ImageDecoder/[[codec implementation]]}} and release associated
[=system resources=].
- 3. If {{ImageDecoder/[[ImageTrackList]]}} is empty, reject
+ 3. If {{ImageDecoder/[[ImageTrackList]]}} is empty, [=reject=]
{{ImageTrackList/[[ready promise]]}} with |exception|. Otherwise
perform these steps,
1. Remove all entries from {{ImageDecoder/[[ImageTrackList]]}}.
2. Assign `-1` to {{ImageDecoder/[[ImageTrackList]]}}'s
{{ImageTrackList/[[selected index]]}}.
- 4. If {{ImageDecoder/[[complete]]}} is false resolve
+ 4. If {{ImageDecoder/[[complete]]}} is false, [=reject=]
{{ImageDecoder/[[completed promise]]}} with |exception|.
ImageDecoderInit Interface {#imagedecoderinit-interface}