| Issue 46021: | Incorrect rendering of compound paths in canvas | |
| 5 people starred this issue and may be notified of changes. | Back to list |
Restricted
Sign in to add a comment
|
Chrome Version : 6.0.422.0 dev on Linux
Other browsers tested:
Chrome 6.0.422.0 dev on Mac OS X: OK
Safari 4: OK
Firefox 3.x: OK
IE 7: N/A
IE 8: N/A
What steps will reproduce the problem?
var ctx = someCanvasElement.getContext('2d');
ctx.beginPath();
ctx.arc(100, 100, 50, 0, 2*Math.PI, false);
ctx.arc(100, 100, 40, 0, 2*Math.PI, true);
ctx.fillStyle = '#ff0000';
ctx.fill();
What is the expected result?
You should see a red 'donut'.
What happens instead?
A plain red circle is drawn.
Please provide any additional information below. Attach a screenshot if
possible.
Sep 29, 2010
I ran into the same bug today on Chrome for Windows. Chrome on Mac appears to be OK, It's easy to create a workaround by using overlapping circles, but it would be nice if it is fixed. I tried to circumvent the bug by adding lines like this: ctx.arc(centerX, centerY, innerRadius, 0, Math.PI*2, false); ctx.lineTo(centerX+innerRadius+diameter,centerY); ctx.arc(centerX, centerY, innerRadius+diameter, Math.PI*2, 0,true); ctx.lineTo(centerX+innerRadius,centerY); But this obviously didn't help...
Mar 3, 2011
i think this is actually a webkit bug. in WebCore/platform/graphics/skia/PathSkia.cpp, in Path::addArc, if the arc in question is a full circle, it apparently just draws an oval and disregards anticlockwise. i really can't believe this has been around for 8 months with no traction :(. this seems like a pretty bad bug.
Feb 16, 2012
(No comment was entered for this change.)
Labels:
-Area-Undefined Area-WebKit WebKit-Rendering
Aug 2, 2012
Thanks for the report. I couldn't reproduce this in r22.0.1221.1, and looks like it was fixed in http://trac.webkit.org/changeset/80409. Closing as fixed.
Status:
Fixed
Oct 13, 2012
This issue has been closed for some time. No one will pay attention to new comments. If you are seeing this bug or have new data, please click New Issue to start a new bug.
Labels:
Restrict-AddIssueComment-Commit
Mar 10, 2013
(No comment was entered for this change.)
Labels:
-Area-WebKit -WebKit-Rendering Cr-Content-Rendering Cr-Content
Apr 5, 2013
(No comment was entered for this change.)
Labels:
-Cr-Content Cr-Blink
Apr 5, 2013
(No comment was entered for this change.)
Labels:
-Cr-Content-Rendering Cr-Blink-Rendering
Jan 9, 2015
Migrate from Cr-Blink-Rendering to Cr-Blink-Layout
Labels:
-Cr-Blink-Rendering Cr-Blink-Layout
|
||||||||||
| ► Sign in to add a comment | |||||||||||
Cc: senorbla...@chromium.org