Skip to content

Commit b41aa79

Browse files
committed
[css-paint-api] Change "class constructor valid flag" to "paint constructor valid flag".
Fix missing link in "draw a paint image" where the flag was set. Fixes #329.
1 parent 0fd1391 commit b41aa79

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

css-paint-api/Overview.bs

+11-11
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ Concepts {#concepts}
127127
A <dfn>paint image definition</dfn> describes an author defined <<image>> which can be referenced by
128128
the <<paint()>> function. It consists of:
129129

130-
- A <dfn>paint image name</dfn>
130+
- A <dfn>paint image name</dfn>.
131131

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>.
133133

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.
135135

136-
- A <dfn>class constructor valid flag</dfn>
136+
- A <dfn>paint constructor valid flag</dfn>.
137137

138138
Registering Custom Paint {#registering-custom-paint}
139139
====================================================
@@ -194,11 +194,11 @@ called, the user agent <em>must</em> run the following steps:
194194

195195
- <a>paint image name</a> being |name|
196196

197-
- <a>class constructor</a> being |paintCtor|
197+
- <a>paint class constructor</a> being |paintCtor|
198198

199199
- <a>paint function</a> being |paint|
200200

201-
- <a>class constructor valid flag</a> being true
201+
- <a>paint constructor valid flag</a> being true
202202

203203
11. Add the key-value pair (|name| - |inputProperties|) to the <a>paint name to input properties
204204
map</a> of the associated <a>document</a>.
@@ -364,16 +364,16 @@ following steps:
364364
6. Let |paintInstance| be the result of looking up |name| on |workletGlobalScope|'s <a>paint
365365
name to instance map</a>. If |paintInstance| is null run the following substeps:
366366

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
368368
be an <a>invalid image</a> and abort all these steps.
369369

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|.
371371

372372
3. Let |paintInstance| be the result of <a>Construct</a>(|paintCtor|).
373373

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.
377377

378378
4. Add the key-value pair (|name| - |paintInstance|) to the <a>paint name to instance
379379
map</a> of the |workletGlobalScope|.

0 commit comments

Comments
 (0)