@@ -10,10 +10,12 @@ Abstract:
1010Editor : Shane Stephens, shanestephens@google.com
1111Editor : Ian Kilpatrick, ikilpatrick@chromium.org
1212Editor : Dean Jackson, dino@apple.com
13+ Ignored Terms : PaintWorklet
1314</pre>
1415
1516<pre class="link-defaults">
1617spec:css-break-3; type:dfn; text:fragment
18+ spec:infra; type:dfn; text:list
1719</pre>
1820
1921<pre class="anchors">
@@ -128,20 +130,20 @@ interface PaintWorkletGlobalScope : WorkletGlobalScope {
128130Concepts {#concepts}
129131====================
130132
131- A <dfn>paint image definition</dfn> describes an author defined <<image>> which can be referenced by
132- the <<paint()>> function. It consists of:
133+ A <dfn>paint image definition</dfn> is a <a>struct</a> which describes an author defined <<image>>
134+ which can be referenced by the <<paint()>> function. It consists of:
133135
134- - A <dfn> paint image name </dfn> .
136+ - <dfn for=" paint image definition">class constructor </dfn> which is the class <a>constructor</a > .
135137
136- - A <dfn>paint class constructor</dfn> which is the class <a>constructor</a> .
138+ - <dfn for="paint image definition">paint function</dfn> which is the paint <a>function</a>
139+ callback.
137140
138- - A <dfn> paint function</dfn> which is the paint <a>function</a> callback .
141+ - <dfn for=" paint image definition">constructor valid flag</dfn> .
139142
140- - A <dfn>paint constructor valid flag</dfn> .
143+ - <dfn for="paint image definition">input properties</dfn> which is a <a>list</a> of
144+ <code> DOMStrings</code> .
141145
142- - A <dfn>paint input property list</dfn> .
143-
144- - A <dfn>paint context alpha flag</dfn> .
146+ - A <dfn for="paint image definition">context alpha flag</dfn> .
145147
146148Registering Custom Paint {#registering-custom-paint}
147149====================================================
@@ -208,17 +210,15 @@ called, the user agent <em>must</em> run the following steps:
208210
209211 14. Let |definition| be a new <a>paint image definition</a> with:
210212
211- - <a>paint image name</a> being |name|
212-
213- - <a>paint class constructor</a> being |paintCtor|
213+ - <a>class constructor</a> being |paintCtor|.
214214
215- - <a>paint function</a> being |paint|
215+ - <a>paint function</a> being |paint|.
216216
217- - <a>paint constructor valid flag</a> being true
217+ - <a>constructor valid flag</a> being <b> true</b> .
218218
219- - <a>paint input property list </a> being |inputProperties|.
219+ - <a>input properties </a> being |inputProperties|.
220220
221- - <a>paint context alpha flag</a> being |alpha|.
221+ - <a>context alpha flag</a> being |alpha|.
222222
223223 15. <a for=map>Set</a> |paintImageDefinitionMap|[|name|] to |definition|.
224224
@@ -435,20 +435,20 @@ and |workletGlobalScope|, it <em>must</em> run the following steps:
435435 5. Let |paintInstance| be the result of <a>get</a> |paintClassInstanceMap|[|name] |. If
436436 |paintInstance| is null, run the following steps:
437437
438- 1. If the <a>paint constructor valid flag</a> on |definition| is false, let the image output
439- be an <a>invalid image</a> and abort all these steps.
438+ 1. If the <a>constructor valid flag</a> on |definition| is false, let the image output be an
439+ <a>invalid image</a> and abort all these steps.
440440
441- 2. Let |paintCtor| be the <a>paint class constructor</a> on |definition|.
441+ 2. Let |paintCtor| be the <a>class constructor</a> on |definition|.
442442
443443 3. Let |paintInstance| be the result of <a>Construct</a> (|paintCtor|).
444444
445- If <a>Construct</a> throws an exception, set the |definition|'s <a>paint constructor
446- valid flag</a> to false, let the image output be an <a>invalid image</a> and abort all
447- these steps.
445+ If <a>Construct</a> throws an exception, set the |definition|'s <a>constructor valid
446+ flag</a> to false, let the image output be an <a>invalid image</a> and abort all these
447+ steps.
448448
449449 4. <a for=map>Set</a> |paintClassInstanceMap|[|name|] to |paintInstance|.
450450
451- 6. Let |inputProperties| be |definition|'s <a>paint input property list </a> .
451+ 6. Let |inputProperties| be |definition|'s <a>input properties </a> .
452452
453453 7. Let |styleMap| be a new {{StylePropertyMapReadOnly}} populated with <em> only</em> the
454454 <a>computed value</a> 's for properties listed in |inputProperties|.
@@ -457,7 +457,7 @@ and |workletGlobalScope|, it <em>must</em> run the following steps:
457457 given:
458458 - "width" - The width given by |concreteObjectSize|.
459459 - "height" - The height given by |concreteObjectSize|.
460- - "alpha" - The <a>paint context alpha flag</a> given by |definition|.
460+ - "alpha" - The <a>context alpha flag</a> given by |definition|.
461461
462462 Note: The |renderingContext| must not be re-used between invocations of paint. Implicitly
463463 this means that there is no stored data, or state on the |renderingContext| between
0 commit comments