Add CanvasRenderingContext2D.reset(), which resets the rendering context, which includes the backing buffer, the drawing state stack, path, and styles. This is soon to be added to the WHATWG spec https://github.com/whatwg/html/pull/6639 Chromium bug: crbug.com/1131137 Web Platform Tests: https://github.com/web-platform-tests/wpt/tree/master/html/canvas/element/reset
<rdar://problem/77842434>
Pull request: https://github.com/WebKit/WebKit/pull/16408
Committed 267824@main (65dc23bfda96): <https://commits.webkit.org/267824@main> Reviewed commits have been landed. Closing PR #16408 and removing active labels.
*** Bug 261231 has been marked as a duplicate of this bug. ***
*** Bug 260986 has been marked as a duplicate of this bug. ***