Closed Bug 1709347 Opened 3 years ago Closed 1 year ago

Add reset function to CanvasRenderingContext2D

Categories

(Core :: Graphics: Canvas2D, task)

task

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: aaronhk, Assigned: jgilbert)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

Expected results:

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

The Bugbug bot thinks this bug should belong to the 'Core::Canvas: 2D' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Severity: -- → N/A
Assignee: nobody → jgilbert
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by jgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/86b04fcd2f98
Add CanvasRenderingContext2D.reset(). r=lsalzman,webidl,smaug
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Type: enhancement → task

FYI MDN docs for this can be tracked in https://github.com/mdn/content/issues/26148 - pretty much compatibility data and release note update.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: