Bug 301343

Summary: Simplify CanvasBase::setSize
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   

Kimmo Kinnunen
Reported 2025-10-23 05:25:41 PDT
Simplify CanvasBase::setSize. It's a bit unclear that HTMLCanvasElement::setSize is used for significantly different purpose than its virtual base CanvasBase::setSize. Former is used for CSSCanvasContext resizing, and latter is used to store what is effectively the context size, set with internal implementation of OffscreenCanvas and HTMLCanvasElement.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-10-23 05:25:48 PDT
Kimmo Kinnunen
Comment 2 2025-10-23 05:50:49 PDT
EWS
Comment 3 2025-10-27 02:23:04 PDT
Committed 302177@main (567d1d7beea8): <https://commits.webkit.org/302177@main> Reviewed commits have been landed. Closing PR #52878 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.