Bug 253695

Summary: Drawing with GraphicsContext::platformContext() is error prone and does not support custom contexts
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: CanvasAssignee: Kimmo Kinnunen <kkinnunen>
Status: NEW ---    
Severity: Normal CC: dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=253640

Description Kimmo Kinnunen 2023-03-10 01:08:44 PST
Drawing with GraphicsContext::platformContext() is problematic

- A frequent bug: callers do not save and restore the context state
- Drawing is not reflected in the secondary context in BifurcatedGraphicsContext
Comment 1 Radar WebKit Bug Importer 2023-03-10 01:09:24 PST
<rdar://problem/106543542>
Comment 2 Radar WebKit Bug Importer 2023-03-10 01:10:20 PST
<rdar://problem/106543585>
Comment 3 Kimmo Kinnunen 2023-03-10 02:22:18 PST
Pull request: https://github.com/WebKit/WebKit/pull/11354