Bug 306603

Summary: Remove CanvasBase::m_contextStateSaver, it is not useful
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: CanvasAssignee: Kimmo Kinnunen <kkinnunen>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 275100    

Kimmo Kinnunen
Reported 2026-01-30 00:32:30 PST
Remove CanvasBase::m_contextStateSaver, it is not useful GraphicsContextStateSaver is a RAII class, it's not more useful than explicit save/restore useful when managed explicitly. Having the state saver in CanvasBase makes it harder to move the ImageBuffer from CanvasBase to 2DCanvasRenderingContextBase
Attachments
Radar WebKit Bug Importer
Comment 1 2026-01-30 00:32:38 PST
Kimmo Kinnunen
Comment 2 2026-01-30 00:38:44 PST
EWS
Comment 3 2026-01-30 11:44:28 PST
Committed 306511@main (8d32ab8d183e): <https://commits.webkit.org/306511@main> Reviewed commits have been landed. Closing PR #57539 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.