@@ -20,9 +20,11 @@ spec:css-break-3; type:dfn; text:fragment
2020urlPrefix: https://heycam.github.io/webidl/; type: dfn;
2121 text: NotSupportedError
2222 urlPrefix: #dfn-;
23+ text: callback this value
2324 text: exception
2425 text: throw
2526 url: throw; text: thrown
27+ url: es-invoking-callback-functions; text: Invoke
2628urlPrefix: https://html.spec.whatwg.org/multipage/scripting.html; type: dfn;
2729 text: reset the rendering context to its default state
2830 text: output bitmap
@@ -31,7 +33,6 @@ urlPrefix: https://html.spec.whatwg.org/multipage/scripting.html; type: dfn;
3133urlPrefix: https://tc39.github.io/ecma262/#sec-; type: dfn;
3234 text: constructor
3335 text: Construct
34- text: Invoke
3536 text: IsArray
3637 text: IsCallable
3738 text: IsConstructor
@@ -400,14 +401,16 @@ following steps:
400401 10. Let |paintSize| be a new {{PaintSize}} initialized to the width and height defined by
401402 |concreteObjectSize|.
402403
403- 11. Perform <a>Invoke</a> (|paintInstance|, "paint", «|renderingContext|, |paintSize|,
404- |styleMap|»).
404+ 11. Let |paintFunction| be |definition|'s <a>paint function</a> .
405405
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.
407410
408411 If an exception is <a>thrown</a> the let the image output be an <a>invalid image</a> .
409412
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> .
411414
412415Note: The user agent <em> should</em> consider long running paint functions similar to long running
413416 script in the main execution context. For example, they <em> should</em> show a "unresponsive
0 commit comments