@@ -68,8 +68,8 @@ Each <<paint()>> function for a box has an associated <dfn>paint valid flag</dfn
68
68
When the size (as determined by layout) of a |box| changes, each <<paint()>> function's <a>paint
69
69
valid flag</a> should be set to <a>paint-invalid</a> .
70
70
71
- When the computed style for a |box| changes, the user agent must run the following steps:
72
- 1. For each <<paint()>> function on the |box|, perform the following substeps :
71
+ When the computed style for a |box| changes, the user agent <em> must</em> run the following steps:
72
+ 1. For each <<paint()>> function on the |box|, perform the following steps :
73
73
1. Let |paintFunction| be the current <<paint()>> function on the |box|.
74
74
75
75
2. Let |name| be the first argument of the <<paint()>> function.
@@ -227,7 +227,7 @@ called, the user agent <em>must</em> run the following steps:
227
227
1. Let |paintInputPropertiesMap| be the associated <a>document</a> 's <a>paint input
228
228
properties</a> map.
229
229
230
- 2. If |paintInputPropertiesMap|[|name|] <a for=map>exists</a> run the following substeps :
230
+ 2. If |paintInputPropertiesMap|[|name|] <a for=map>exists</a> , run the following steps :
231
231
232
232
1. Let |existingInputProperties| be the result of <a>get</a>
233
233
|paintInputPropertiesMap|[|name|] .
@@ -308,7 +308,7 @@ correct resolution. This also allows user agents to re-use the same output of th
308
308
bitmap</a> repeatably while the visual viewport is being zoomed for example.
309
309
310
310
When the user agent is to <dfn>create a PaintRenderingContext2D object</dfn> for a given |width|,
311
- |height| and |alpha| it <em> must</em> run the following steps:
311
+ |height|, and |alpha|, it <em> must</em> run the following steps:
312
312
1. Create a new {{PaintRenderingContext2D}} .
313
313
2. <a>Set bitmap dimensions</a> for the context's <a>output bitmap</a> to |width| and |height|.
314
314
3. Set the {{PaintRenderingContext2D}} 's <a>alpha</a> flag to |alpha|.
@@ -405,14 +405,13 @@ following steps:
405
405
it should select a paint worklet global scope which can be used on that thread.
406
406
407
407
When the user agent wants to <dfn>invoke a paint callback</dfn> given |name|, |concreteObjectSize|,
408
- |workletGlobalScope|, it <em> must</em> run the following steps:
408
+ and |workletGlobalScope|, it <em> must</em> run the following steps:
409
409
410
410
1. Let |paintImageDefinitionMap| be |workletGlobalScope|'s <a>paint image definitions</a> map.
411
411
412
- 2. If |paintImageDefinitionMap|[|name|] does not <a for=map>exist</a> , run the following
413
- substeps:
412
+ 2. If |paintImageDefinitionMap|[|name|] does not <a for=map>exist</a> , run the following steps:
414
413
415
- 1. <a>Queue a task</a> to run the following substeps :
414
+ 1. <a>Queue a task</a> to run the following steps :
416
415
417
416
1. Let |paintInputPropertiesMap| be the associated <a>document</a> 's <a>paint input
418
417
properties</a> map.
@@ -434,7 +433,7 @@ When the user agent wants to <dfn>invoke a paint callback</dfn> given |name|, |c
434
433
4. Let |paintClassInstanceMap| be |workletGlobalScope|'s <a>paint class instances</a> map.
435
434
436
435
5. Let |paintInstance| be the result of <a>get</a> |paintClassInstanceMap|[|name] |. If
437
- |paintInstance| is null run the following substeps :
436
+ |paintInstance| is null, run the following steps :
438
437
439
438
1. If the <a>paint constructor valid flag</a> on |definition| is false, let the image output
440
439
be an <a>invalid image</a> and abort all these steps.
0 commit comments