Bug 19789 - [CAIRO] stroke and fill color in Canvas
Summary: [CAIRO] stroke and fill color in Canvas
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL: http://developer.mozilla.org/samples/...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-27 05:29 PDT by Dirk Schulze
Modified: 2008-08-18 06:39 PDT (History)
0 users

See Also:


Attachments
Example (471 bytes, text/html)
2008-06-27 05:34 PDT, Dirk Schulze
no flags Details
Example (616 bytes, text/html)
2008-06-28 08:49 PDT, Dirk Schulze
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2008-06-27 05:29:14 PDT
If you apply a fill and a stroke color to the context, the last defined color is used to fill a path/rect (strokeRect() isn't apllied at all).

It's because solid colors are applied to one source pattern. We can't save different colors in cairo.
But perhaps we can use patterns for solid colors?
A fill pattern and a stroke pattern to fill/stroke pathes/rects with this patterns combined with CAIRO_EXTEND_REPEAT.
Comment 1 Dirk Schulze 2008-06-27 05:34:19 PDT
Created attachment 21970 [details]
Example

short example
Comment 2 Dirk Schulze 2008-06-28 08:49:02 PDT
Created attachment 21987 [details]
Example

a better testcase. strokeRect() has a bug too :-)
Comment 3 Dirk Schulze 2008-08-18 06:39:55 PDT
Fixed with https://bugs.webkit.org/show_bug.cgi?id=20405