@@ -20,40 +20,28 @@ spec:css-break-3; type:dfn; text:fragment
20
20
urlPrefix: https://heycam.github.io/webidl/; type: dfn;
21
21
text: NotSupportedError
22
22
urlPrefix: #dfn-;
23
- text: callback this value
24
- text: exception
25
- text: throw
26
23
url: throw; text: thrown
27
24
urlPrefix: #idl-;
28
25
text: boolean
29
- url: es-invoking-callback-functions; text: Invoke
26
+ text: DOMException
30
27
url: es-type-mapping; text: converting
31
28
urlPrefix: https://html.spec.whatwg.org/multipage/; type: dfn;
32
29
urlPrefix: scripting.html
33
30
text: reset the rendering context to its default state
34
31
text: output bitmap
35
- text: queue a task
36
32
text: set bitmap dimensions
37
33
url: concept-canvas-alpha; text: alpha
38
- urlPrefix: infrastructure.html
39
- text: in parallel
40
34
urlPrefix: https://tc39.github.io/ecma262/#sec-; type: dfn;
41
35
text: constructor
42
36
text: Construct
43
37
text: IsArray
44
38
text: IsCallable
45
39
text: IsConstructor
46
- text: HasProperty
47
40
url: ecmascript-data-types-and-values; text: type
48
41
url: get-o-p; text: Get
49
42
url: terms-and-definitions-function; text: function
50
43
urlPrefix: native-error-types-used-in-this-standard-
51
44
text: TypeError
52
- urlPrefix: https://infra.spec.whatwg.org/#; type: dfn;
53
- url: ordered-map; text: map
54
- urlPrefix: map-
55
- url: exists; text: exist
56
- url: set; text: set
57
45
</pre>
58
46
59
47
Introduction {#intro}
@@ -175,16 +163,16 @@ called, the user agent <em>must</em> run the following steps:
175
163
2. Let |paintImageDefinitionMap| be {{PaintWorkletGlobalScope}} 's <a>paint image definitions</a>
176
164
map.
177
165
178
- 3. If |paintImageDefinitionMap|[|name|] <a>exists</a> <a>throw</a> a <a>NotSupportedError</a>
179
- and abort all these steps.
166
+ 3. If |paintImageDefinitionMap|[|name|] <a for=map >exists</a> <a>throw</a> a
167
+ " <a>NotSupportedError</a> " <a>DOMException</a> and abort all these steps.
180
168
181
169
4. Let |inputProperties| be an empty <code> sequence<DOMString></code>
182
170
183
171
5. Let |inputPropertiesIterable| be the result of <a>Get</a> (|paintCtor|, "inputProperties").
184
172
185
173
6. If |inputPropertiesIterable| is not undefined, then set |inputProperties| to the result of
186
174
<a>converting</a> |inputPropertiesIterable| to a <code> sequence<DOMString></code> . If an
187
- exception is thrown, rethrow the exception and abort all these steps.
175
+ exception is <a> thrown</a> , rethrow the exception and abort all these steps.
188
176
189
177
Note: The list of CSS properties provided by the input properties getter can either be custom or
190
178
native CSS properties.
@@ -198,8 +186,8 @@ called, the user agent <em>must</em> run the following steps:
198
186
7. Let |alphaValue| be the result of <a>Get</a> (|paintCtor|, "alpha").
199
187
200
188
8. Let |alpha| be <code> true</code> if |alphaValue| is undefined, otherwise let it be the result
201
- of <a>converting</a> |alphaValue| to a <a>boolean</a> . If an exception is thrown, rethrow
202
- the exception and abort all these steps.
189
+ of <a>converting</a> |alphaValue| to a <a>boolean</a> . If an exception is <a> thrown</a> ,
190
+ rethrow the exception and abort all these steps.
203
191
204
192
Note: Setting <code> alpha</code> is <code> false</code> allows user agents to anti-alias text
205
193
an addition to performing "visibility" optimizations, e.g. not painting an image behind
@@ -232,22 +220,22 @@ called, the user agent <em>must</em> run the following steps:
232
220
233
221
- <a>paint context alpha flag</a> being |alpha|.
234
222
235
- 15. <a>Set</a> |paintImageDefinitionMap|[|name|] to |definition|.
223
+ 15. <a for=map >Set</a> |paintImageDefinitionMap|[|name|] to |definition|.
236
224
237
225
16. <a>Queue a task</a> to run the following steps:
238
226
239
227
1. Let |paintInputPropertiesMap| be the associated <a>document</a> 's <a>paint input
240
228
properties</a> map.
241
229
242
- 2. If |paintInputPropertiesMap|[|name|] <a>exists</a> run the following substeps:
230
+ 2. If |paintInputPropertiesMap|[|name|] <a for=map >exists</a> run the following substeps:
243
231
244
232
1. Let |existingInputProperties| be the result of <a>get</a>
245
233
|paintInputPropertiesMap|[|name|] .
246
234
247
- 2. If |existingInputProperties| and |inputProperties| are not equivalent, <a>set</a>
248
- |paintInputPropertiesMap|[|name|] to <code> "invalid"</code> .
235
+ 2. If |existingInputProperties| and |inputProperties| are not equivalent, <a
236
+ for=map> set </a> |paintInputPropertiesMap|[|name|] to <code> "invalid"</code> .
249
237
250
- 3. Otherwise, <a>set</a> |paintInputPropertiesMap|[|name|] to |inputProperties|.
238
+ 3. Otherwise, <a for=map >set</a> |paintInputPropertiesMap|[|name|] to |inputProperties|.
251
239
252
240
Note: The list of input properties should only be looked up once, the class doesn't have the
253
241
opportunity to dynamically change its input properties.
@@ -299,8 +287,8 @@ PaintRenderingContext2D implements CanvasPath;
299
287
</pre>
300
288
301
289
Note: The {{PaintRenderingContext2D}} implements a subset of the {{CanvasRenderingContext2D}} API.
302
- Specifically it doesn't implement the {{CanvasHitRegion }} , {{CanvasImageData }} ,
303
- {{CanvasUserInterface}} , {{ CanvasText}} or {{CanvasTextDrawingStyles}} APIs.
290
+ Specifically it doesn't implement the {{CanvasImageData }} , {{CanvasUserInterface }} ,
291
+ {{CanvasText}} , or {{CanvasTextDrawingStyles}} APIs.
304
292
305
293
A {{PaintRenderingContext2D}} object has a <a>output bitmap</a> . This is initialised when the
306
294
object is created. The size of the <a>output bitmap</a> is the size of the fragment it is
@@ -391,8 +379,8 @@ following steps:
391
379
5. Let |paintInputPropertiesMap| be the associated <a>document's</a> <a>paint input
392
380
properties</a> map.
393
381
394
- 6. If |paintInputPropertiesMap|[|name|] does not <a>exist</a> , let the image output be an
395
- <a>invalid image</a> and abort all these steps.
382
+ 6. If |paintInputPropertiesMap|[|name|] does not <a for=map >exist</a> , let the image output be
383
+ an <a>invalid image</a> and abort all these steps.
396
384
397
385
7. If the result of <a>get</a> |paintInputPropertiesMap|[|name|] is <code> "invalid"</code> , let
398
386
the image output be an <a>invalid image</a> and abort all these steps.
@@ -418,14 +406,15 @@ When the user agent wants to <dfn>invoke a paint callback</dfn> given |name|, |c
418
406
419
407
1. Let |paintImageDefinitionMap| be |workletGlobalScope|'s <a>paint image definitions</a> map.
420
408
421
- 2. If |paintImageDefinitionMap|[|name|] does not <a>exist</a> , run the following substeps:
409
+ 2. If |paintImageDefinitionMap|[|name|] does not <a for=map>exist</a> , run the following
410
+ substeps:
422
411
423
412
1. <a>Queue a task</a> to run the following substeps:
424
413
425
414
1. Let |paintInputPropertiesMap| be the associated <a>document</a> 's <a>paint input
426
415
properties</a> map.
427
416
428
- 2. <a>Set</a> |paintInputPropertiesMap|[|name|] to <code> "invalid"</code> .
417
+ 2. <a for=map >Set</a> |paintInputPropertiesMap|[|name|] to <code> "invalid"</code> .
429
418
430
419
2. Let the image output be an <a>invalid image</a> and abort all these steps.
431
420
@@ -452,7 +441,7 @@ When the user agent wants to <dfn>invoke a paint callback</dfn> given |name|, |c
452
441
valid flag</a> to false, let the image output be an <a>invalid image</a> and abort all
453
442
these steps.
454
443
455
- 4. <a>Set</a> |paintClassInstanceMap|[|name|] to |paintInstance|.
444
+ 4. <a for=map >Set</a> |paintClassInstanceMap|[|name|] to |paintInstance|.
456
445
457
446
6. Let |inputProperties| be |definition|'s <a>paint input property list</a> .
458
447
0 commit comments