Bug 225349 - Add reset function to CanvasRenderingContext2D
Summary: Add reset function to CanvasRenderingContext2D
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Enhancement
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
: 260986 261231 (view as bug list)
Depends on: 260014 261296
Blocks:
  Show dependency treegraph
 
Reported: 2021-05-04 06:41 PDT by Aaron Krajeski
Modified: 2024-02-05 08:44 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Krajeski 2021-05-04 06:41:30 PDT
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
Comment 1 Radar WebKit Bug Importer 2021-05-11 06:42:15 PDT
<rdar://problem/77842434>
Comment 2 Kiet Ho 2023-08-04 15:36:47 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16408
Comment 3 EWS 2023-09-08 23:23:06 PDT
Committed 267824@main (65dc23bfda96): <https://commits.webkit.org/267824@main>

Reviewed commits have been landed. Closing PR #16408 and removing active labels.
Comment 4 Said Abou-Hallawa 2023-09-11 12:17:49 PDT
*** Bug 261231 has been marked as a duplicate of this bug. ***
Comment 5 Said Abou-Hallawa 2023-09-20 14:51:53 PDT
*** Bug 260986 has been marked as a duplicate of this bug. ***