@@ -24,6 +24,8 @@ urlPrefix: https://heycam.github.io/webidl/; type: dfn;
24
24
text: exception
25
25
text: throw
26
26
url: throw; text: thrown
27
+ urlPrefix: #idl-;
28
+ text: boolean
27
29
url: es-invoking-callback-functions; text: Invoke
28
30
url: es-type-mapping; text: converting
29
31
urlPrefix: https://html.spec.whatwg.org/multipage/scripting.html; type: dfn;
@@ -178,30 +180,28 @@ called, the user agent <em>must</em> run the following steps:
178
180
179
181
6. Let |alphaValue| be the result of <a>Get</a> (|paintCtor|, "alpha").
180
182
181
- 7. If |alphaValue| is not undefined and the result of <a>Type</a> (|alpha|) is not Boolean,
182
- <a>throw</a> a <a>TypeError</a> and abort all these steps.
183
-
184
- 8. Let |alpha| be <code> true</code> if |alphaValue| is undefined, otherwise let it be the value
185
- of |alphaValue|.
183
+ 7. Let |alpha| be <code> true</code> if |alphaValue| is undefined, otherwise let it be the result
184
+ of <a>converting</a> |alphaValue| to a <a>boolean</a> . If an exception is thrown, rethrow
185
+ the exception and abort all these steps.
186
186
187
187
Note: Setting <code> alpha</code> is <code> false</code> allows user agents to anti-alias text
188
188
an addition to performing "visibility" optimizations, e.g. not painting an image behind
189
189
the paint image as the paint image is opaque.
190
190
191
- 9 . If the result of <a>IsConstructor</a> (|paintCtor|) is false, <a>throw</a> a <a>TypeError</a>
191
+ 8 . If the result of <a>IsConstructor</a> (|paintCtor|) is false, <a>throw</a> a <a>TypeError</a>
192
192
and abort all these steps.
193
193
194
- 10 . Let |prototype| be the result of <a>Get</a> (|paintCtor|, "prototype").
194
+ 9 . Let |prototype| be the result of <a>Get</a> (|paintCtor|, "prototype").
195
195
196
- 11 . If the result of <a>Type</a> (|prototype|) is not Object, <a>throw</a> a <a>TypeError</a> and
196
+ 10 . If the result of <a>Type</a> (|prototype|) is not Object, <a>throw</a> a <a>TypeError</a> and
197
197
abort all these steps.
198
198
199
- 12 . Let |paint| be the result of <a>Get</a> (|prototype|, "paint").
199
+ 11 . Let |paint| be the result of <a>Get</a> (|prototype|, "paint").
200
200
201
- 13 . If the result of <a>IsCallable</a> (|paint|) is false, <a>throw</a> a <a>TypeError</a> and
201
+ 12 . If the result of <a>IsCallable</a> (|paint|) is false, <a>throw</a> a <a>TypeError</a> and
202
202
abort all these steps.
203
203
204
- 14 . Let |definition| be a new <a>paint image definition</a> with:
204
+ 13 . Let |definition| be a new <a>paint image definition</a> with:
205
205
206
206
- <a>paint image name</a> being |name|
207
207
@@ -213,10 +213,10 @@ called, the user agent <em>must</em> run the following steps:
213
213
214
214
- <a>paint context alpha flag</a> being |alpha|.
215
215
216
- 15 . Add the key-value pair (|name| - |inputProperties|) to the <a>paint name to input properties
216
+ 14 . Add the key-value pair (|name| - |inputProperties|) to the <a>paint name to input properties
217
217
map</a> of the associated <a>document</a> .
218
218
219
- 16 . Add the key-value pair (|name| - |definition|) to the <a>paint name to paint image
219
+ 15 . Add the key-value pair (|name| - |definition|) to the <a>paint name to paint image
220
220
definition map</a> of the associated <a>document</a> .
221
221
222
222
0 commit comments