@@ -20,9 +20,11 @@ spec:css-break-3; type:dfn; text:fragment
20
20
urlPrefix: https://heycam.github.io/webidl/; type: dfn;
21
21
text: NotSupportedError
22
22
urlPrefix: #dfn-;
23
+ text: callback this value
23
24
text: exception
24
25
text: throw
25
26
url: throw; text: thrown
27
+ url: es-invoking-callback-functions; text: Invoke
26
28
urlPrefix: https://html.spec.whatwg.org/multipage/scripting.html; type: dfn;
27
29
text: reset the rendering context to its default state
28
30
text: output bitmap
@@ -31,7 +33,6 @@ urlPrefix: https://html.spec.whatwg.org/multipage/scripting.html; type: dfn;
31
33
urlPrefix: https://tc39.github.io/ecma262/#sec-; type: dfn;
32
34
text: constructor
33
35
text: Construct
34
- text: Invoke
35
36
text: IsArray
36
37
text: IsCallable
37
38
text: IsConstructor
@@ -400,14 +401,16 @@ following steps:
400
401
10. Let |paintSize| be a new {{PaintSize}} initialized to the width and height defined by
401
402
|concreteObjectSize|.
402
403
403
- 11. Perform <a>Invoke</a> (|paintInstance|, "paint", «|renderingContext|, |paintSize|,
404
- |styleMap|»).
404
+ 11. Let |paintFunction| be |definition|'s <a>paint function</a> .
405
405
406
- 12. The image output is to be produced from the |renderingContext| given to the method.
406
+ 12. <a>Invoke</a> |paintFunction| with arguments «|renderingContext|, |paintSize|, |styleMap|»,
407
+ and with |paintInstance| as the <a>callback this value</a> .
408
+
409
+ 13. The image output is to be produced from the |renderingContext| given to the method.
407
410
408
411
If an exception is <a>thrown</a> the let the image output be an <a>invalid image</a> .
409
412
410
- 13 . Set the <a>paint valid flag</a> for the |paintFunction| to <a>paint-valid</a> .
413
+ 14 . Set the <a>paint valid flag</a> for the |paintFunction| to <a>paint-valid</a> .
411
414
412
415
Note: The user agent <em> should</em> consider long running paint functions similar to long running
413
416
script in the main execution context. For example, they <em> should</em> show a "unresponsive
0 commit comments