Skip to content

Commit 6536115

Browse files
committed
[worklets] Fix up anchors for spec.
1 parent 5b0eccc commit 6536115

File tree

1 file changed

+19
-30
lines changed

1 file changed

+19
-30
lines changed

css-paint-api/Overview.bs

+19-30
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,28 @@ spec:css-break-3; type:dfn; text:fragment
2020
urlPrefix: https://heycam.github.io/webidl/; type: dfn;
2121
text: NotSupportedError
2222
urlPrefix: #dfn-;
23-
text: callback this value
24-
text: exception
25-
text: throw
2623
url: throw; text: thrown
2724
urlPrefix: #idl-;
2825
text: boolean
29-
url: es-invoking-callback-functions; text: Invoke
26+
text: DOMException
3027
url: es-type-mapping; text: converting
3128
urlPrefix: https://html.spec.whatwg.org/multipage/; type: dfn;
3229
urlPrefix: scripting.html
3330
text: reset the rendering context to its default state
3431
text: output bitmap
35-
text: queue a task
3632
text: set bitmap dimensions
3733
url: concept-canvas-alpha; text: alpha
38-
urlPrefix: infrastructure.html
39-
text: in parallel
4034
urlPrefix: https://tc39.github.io/ecma262/#sec-; type: dfn;
4135
text: constructor
4236
text: Construct
4337
text: IsArray
4438
text: IsCallable
4539
text: IsConstructor
46-
text: HasProperty
4740
url: ecmascript-data-types-and-values; text: type
4841
url: get-o-p; text: Get
4942
url: terms-and-definitions-function; text: function
5043
urlPrefix: native-error-types-used-in-this-standard-
5144
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
5745
</pre>
5846

5947
Introduction {#intro}
@@ -175,16 +163,16 @@ called, the user agent <em>must</em> run the following steps:
175163
2. Let |paintImageDefinitionMap| be {{PaintWorkletGlobalScope}}'s <a>paint image definitions</a>
176164
map.
177165

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

181169
4. Let |inputProperties| be an empty <code>sequence&lt;DOMString></code>
182170

183171
5. Let |inputPropertiesIterable| be the result of <a>Get</a>(|paintCtor|, "inputProperties").
184172

185173
6. If |inputPropertiesIterable| is not undefined, then set |inputProperties| to the result of
186174
<a>converting</a> |inputPropertiesIterable| to a <code>sequence&lt;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.
188176

189177
Note: The list of CSS properties provided by the input properties getter can either be custom or
190178
native CSS properties.
@@ -198,8 +186,8 @@ called, the user agent <em>must</em> run the following steps:
198186
7. Let |alphaValue| be the result of <a>Get</a>(|paintCtor|, "alpha").
199187

200188
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.
203191

204192
Note: Setting <code>alpha</code> is <code>false</code> allows user agents to anti-alias text
205193
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:
232220

233221
- <a>paint context alpha flag</a> being |alpha|.
234222

235-
15. <a>Set</a> |paintImageDefinitionMap|[|name|] to |definition|.
223+
15. <a for=map>Set</a> |paintImageDefinitionMap|[|name|] to |definition|.
236224

237225
16. <a>Queue a task</a> to run the following steps:
238226

239227
1. Let |paintInputPropertiesMap| be the associated <a>document</a>'s <a>paint input
240228
properties</a> map.
241229

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:
243231

244232
1. Let |existingInputProperties| be the result of <a>get</a>
245233
|paintInputPropertiesMap|[|name|].
246234

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

250-
3. Otherwise, <a>set</a> |paintInputPropertiesMap|[|name|] to |inputProperties|.
238+
3. Otherwise, <a for=map>set</a> |paintInputPropertiesMap|[|name|] to |inputProperties|.
251239

252240
Note: The list of input properties should only be looked up once, the class doesn't have the
253241
opportunity to dynamically change its input properties.
@@ -299,8 +287,8 @@ PaintRenderingContext2D implements CanvasPath;
299287
</pre>
300288

301289
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.
304292

305293
A {{PaintRenderingContext2D}} object has a <a>output bitmap</a>. This is initialised when the
306294
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:
391379
5. Let |paintInputPropertiesMap| be the associated <a>document's</a> <a>paint input
392380
properties</a> map.
393381

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

397385
7. If the result of <a>get</a> |paintInputPropertiesMap|[|name|] is <code>"invalid"</code>, let
398386
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
418406

419407
1. Let |paintImageDefinitionMap| be |workletGlobalScope|'s <a>paint image definitions</a> map.
420408

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:
422411

423412
1. <a>Queue a task</a> to run the following substeps:
424413

425414
1. Let |paintInputPropertiesMap| be the associated <a>document</a>'s <a>paint input
426415
properties</a> map.
427416

428-
2. <a>Set</a> |paintInputPropertiesMap|[|name|] to <code>"invalid"</code>.
417+
2. <a for=map>Set</a> |paintInputPropertiesMap|[|name|] to <code>"invalid"</code>.
429418

430419
2. Let the image output be an <a>invalid image</a> and abort all these steps.
431420

@@ -452,7 +441,7 @@ When the user agent wants to <dfn>invoke a paint callback</dfn> given |name|, |c
452441
valid flag</a> to false, let the image output be an <a>invalid image</a> and abort all
453442
these steps.
454443

455-
4. <a>Set</a> |paintClassInstanceMap|[|name|] to |paintInstance|.
444+
4. <a for=map>Set</a> |paintClassInstanceMap|[|name|] to |paintInstance|.
456445

457446
6. Let |inputProperties| be |definition|'s <a>paint input property list</a>.
458447

0 commit comments

Comments
 (0)