Bug 261462

Summary: GraphicsContext::createScaledImageBuffer uses different equations for different variants
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   

Description Kimmo Kinnunen 2023-09-12 06:21:26 PDT
GraphicsContext::createScaledImageBuffer uses different equations for different variants 

The call:

    GraphicsContext::createScaledImageBuffer(FloatRect { { }, { w, h }, ...)

Uses different equation than:

    GraphicsContext::createScaledImageBuffer(FloatSize { w, h }, ...)
Comment 1 Radar WebKit Bug Importer 2023-09-12 06:21:36 PDT
<rdar://problem/115352084>
Comment 2 Kimmo Kinnunen 2023-09-12 06:36:12 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17692