Bug 29470
| Summary: | [Qt] Webkit: canvas drawimage translation offset error - displays clipped/no image. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tor Arne Vestbø <vestbo> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | krit |
| Priority: | P2 | Keywords: | Qt |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Other | ||
| OS: | OS X 10.5 | ||
Tor Arne Vestbø
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);
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Dirk Schulze
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 ***