Bug 120632

Summary: [Qt] Images scaled poorly in canvas
Product: WebKit Reporter: Allan Sandfeld Jensen <allan.jensen>
Component: Layout and RenderingAssignee: Allan Sandfeld Jensen <allan.jensen>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, jturcotte, michael.bruning, noam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch jturcotte: review+

Description Allan Sandfeld Jensen 2013-09-03 05:40:27 PDT
The WebKit canvas code assumes that antialiasing and average image quality is enabled by default. The Qt ImageBuffer implementation does not however set any default render-hints causing the defaults in the GraphicsContext to be antialiasing and smooth scaling disabled.

Ideally these default should follow the render-hints set on the webview, but I don't see how that is possible currently, so let us default the defaults to the default.
Comment 1 Allan Sandfeld Jensen 2013-09-03 05:40:54 PDT
Btw, this is Issue 2 from https://bugreports.qt-project.org/browse/QTBUG-33081.
Comment 2 Allan Sandfeld Jensen 2013-09-03 05:42:46 PDT
Created attachment 210360 [details]
Patch
Comment 3 Allan Sandfeld Jensen 2013-09-03 07:44:25 PDT
Created attachment 210372 [details]
Patch

Moved the fix to better defining image-interpolation quality in TextureMapper since that is where the problem is.
Comment 4 Allan Sandfeld Jensen 2013-09-03 08:31:08 PDT
Committed r154985: <http://trac.webkit.org/changeset/154985>