@@ -127,13 +127,13 @@ Concepts {#concepts}
127
127
A <dfn>paint image definition</dfn> describes an author defined <<image>> which can be referenced by
128
128
the <<paint()>> function. It consists of:
129
129
130
- - A <dfn>paint image name</dfn>
130
+ - A <dfn>paint image name</dfn> .
131
131
132
- - A <dfn>class constructor</dfn> which is the class <a>constructor</a>
132
+ - A <dfn>paint class constructor</dfn> which is the class <a>constructor</a> .
133
133
134
- - A <dfn>paint function</dfn> which is the paint <a>function</a> callback
134
+ - A <dfn>paint function</dfn> which is the paint <a>function</a> callback.
135
135
136
- - A <dfn>class constructor valid flag</dfn>
136
+ - A <dfn>paint constructor valid flag</dfn> .
137
137
138
138
Registering Custom Paint {#registering-custom-paint}
139
139
====================================================
@@ -194,11 +194,11 @@ called, the user agent <em>must</em> run the following steps:
194
194
195
195
- <a>paint image name</a> being |name|
196
196
197
- - <a>class constructor</a> being |paintCtor|
197
+ - <a>paint class constructor</a> being |paintCtor|
198
198
199
199
- <a>paint function</a> being |paint|
200
200
201
- - <a>class constructor valid flag</a> being true
201
+ - <a>paint constructor valid flag</a> being true
202
202
203
203
11. Add the key-value pair (|name| - |inputProperties|) to the <a>paint name to input properties
204
204
map</a> of the associated <a>document</a> .
@@ -364,16 +364,16 @@ following steps:
364
364
6. Let |paintInstance| be the result of looking up |name| on |workletGlobalScope|'s <a>paint
365
365
name to instance map</a> . If |paintInstance| is null run the following substeps:
366
366
367
- 1. If the <a>class constructor valid flag</a> on |definition| is false, let the image output
367
+ 1. If the <a>paint constructor valid flag</a> on |definition| is false, let the image output
368
368
be an <a>invalid image</a> and abort all these steps.
369
369
370
- 2. Let |paintCtor| be the <a>class constructor</a> on |definition|.
370
+ 2. Let |paintCtor| be the <a>paint class constructor</a> on |definition|.
371
371
372
372
3. Let |paintInstance| be the result of <a>Construct</a> (|paintCtor|).
373
373
374
- If <a>Construct</a> throws an exception, set the |definition|'s <a>constructor valid
375
- flag</a> to false, let the image output be an <a>invalid image</a> and abort all these
376
- steps.
374
+ If <a>Construct</a> throws an exception, set the |definition|'s <a>paint constructor
375
+ valid flag</a> to false, let the image output be an <a>invalid image</a> and abort all
376
+ these steps.
377
377
378
378
4. Add the key-value pair (|name| - |paintInstance|) to the <a>paint name to instance
379
379
map</a> of the |workletGlobalScope|.
0 commit comments