Bug 26436

Summary: Chromium's canvas forgets its context after fillText
Product: WebKit Reporter: Shinichiro Hamaji <hamaji>
Component: WebCore Misc.Assignee: David Levin <levin>
Status: RESOLVED FIXED    
Severity: Normal CC: hamaji
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows Vista   
URL: https://bugs.webkit.org/attachment.cgi?id=31339
Attachments:
Description Flags
test case
none
Patch v1 dglazkov: review+

Description Shinichiro Hamaji 2009-06-16 00:48:27 PDT
Chromium's canvas on Windows restore its context after fillText. This doesn't happen with Safari and linux chrome. I think this is the bug of glue code. I'll upload a patch.

Related chromium bug: http://code.google.com/p/chromium/issues/detail?id=14065
Comment 1 Shinichiro Hamaji 2009-06-16 00:49:18 PDT
Created attachment 31339 [details]
test case
Comment 2 Shinichiro Hamaji 2009-06-16 01:00:16 PDT
Created attachment 31340 [details]
Patch v1

 LayoutTests/ChangeLog                              |   17 +++++++
 .../fast/canvas/resources/translate-text.js        |   46 ++++++++++++++++++++
 .../fast/canvas/translate-text-expected.txt        |   10 ++++
 LayoutTests/fast/canvas/translate-text.html        |   13 ++++++
 WebCore/ChangeLog                                  |   15 ++++++
 .../platform/graphics/chromium/TransparencyWin.cpp |    1 +
 6 files changed, 102 insertions(+), 0 deletions(-)
Comment 3 David Levin 2009-06-25 10:32:36 PDT
Assign to levin for landing.
Comment 4 David Levin 2009-06-25 13:36:26 PDT
Committed as http://trac.webkit.org/changeset/45188.