Bug 58258

Summary: [Chromium] after a non-accelerated call, accelerated canvas-to-canvas draws are incorrect
Product: WebKit Reporter: Stephen White <senorblanco>
Component: CanvasAssignee: Stephen White <senorblanco>
Status: RESOLVED FIXED    
Severity: Normal CC: jamesr, kbr, mdelaney7, mixxster
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
Patch jamesr: review+

Description Stephen White 2011-04-11 13:00:39 PDT
If a non-accelerated canvas2D call is made (e.g., strokeRect) followed by a call to drawImage() of that canvas to another canvas context, the results will be incorrect (the stroke is not shown).

This can be seen on sites such as http://canvasrider.com/tracks/695376, although there doesn't seem to be a layout test that covers it.
Comment 1 Stephen White 2011-04-11 13:06:09 PDT
Created attachment 89061 [details]
Patch
Comment 2 James Robinson 2011-04-11 13:39:07 PDT
Comment on attachment 89061 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=89061&action=review

Aha!

> LayoutTests/fast/canvas/canvas-to-canvas.html:1
> +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

just <!DOCTYPE html> should suffice
Comment 3 Stephen White 2011-04-13 11:26:57 PDT
Landed as http://trac.webkit.org/changeset/83582.