Bug 100719 - [Qt] Rendering a scaled canvas with shadowBlur is incorrect and really slow
Summary: [Qt] Rendering a scaled canvas with shadowBlur is incorrect and really slow
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.8
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-29 18:44 PDT by evan.exe
Modified: 2014-02-03 03:23 PST (History)
0 users

See Also:


Attachments
Screenshot and demo C++ Qt project (22.38 KB, application/zip)
2012-10-29 18:44 PDT, evan.exe
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description evan.exe 2012-10-29 18:44:17 PDT
Created attachment 171357 [details]
Screenshot and demo C++ Qt project

OS X version: 10.8.2
Qt version: 4.8.1

Load shadow-blur-test.html in a QWebView. It renders two identical red squares with a drop shadow. The left square has a scale of 1 and the right square has a scale of 0.01.

Expected:
Both the left and right renderings should look the same.

Instead:
The left rendering is rendered correctly but the right rendering only has a drop shadow along the vertical edges. In addition, rendering the right square takes 13 seconds vs 1 millisecond for the left square. It seems that QtWebKit renders the shadow at a huge resolution and then downsamples afterwards.

Workaround:
Don't use the canvas transform API and do all transforms manually instead.
Comment 1 Jocelyn Turcotte 2014-02-03 03:23:07 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.