Bug 29470 - [Qt] Webkit: canvas drawimage translation offset error - displays clipped/no image.
Summary: [Qt] Webkit: canvas drawimage translation offset error - displays clipped/no ...
Status: RESOLVED DUPLICATE of bug 26256
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2009-09-18 08:34 PDT by Tor Arne Vestbø
Modified: 2009-09-30 04:57 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tor Arne Vestbø 2009-09-18 08:34:38 PDT
This bug report originated from issue QTBUG-3070
<http://bugreports.qt.nokia.com/browse/QTBUG-3070>

--- Description ---

Applying canvas.context.translate will cause the image to clip/not draw. This problem also occurs in the 4.51tp1.  
 
Using a small 29x29 pixel image, webkit html javascript will fail to draw properly: 
canvas = document.getElementById('graphitem2'); 
ctx = canvas.getContext('2d'); 
ctx.translate(10,10); 
ctx.drawImage(targetboximage,0,0);
Comment 1 Dirk Schulze 2009-09-30 04:57:15 PDT
This is a duplicate of bug 26256. It does not only belong to translations. All transformations of an image can fail. IIRC this does only happen on real images. No problems, if you use another canvas tag as image.

*** This bug has been marked as a duplicate of bug 26256 ***