[Webkit-unassigned] [Bug 105650] Quadratic and bezier curves with coincident endpoints rendered incorrectly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 7 12:27:24 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=105650
--- Comment #3 from Kenneth Russell <kbr at google.com> 2013-01-07 12:29:20 PST ---
(In reply to comment #2)
> I came across this bug description when searching for a potential bug related to CanvasRenderingContext2D::arcTo.
> If that is not already done, I can propose a patch fixing this bug and adding corresponding test cases. Probably the test cases could follow the style of the current canvas test suite, something like a green rectangle generation:
>
> <canvas id="myCanvas" width="100" height="50">
> </canvas>
> <script>
> var canvas = document.getElementById('myCanvas');
> var ctx = canvas.getContext('2d');
> ctx.beginPath();
> ctx.moveTo(0, 0);
> ctx.bezierCurveTo(100, 0, 0, 50, 0, 0);
> ctx.lineWidth = 150;
> ctx.strokeStyle = '#0f0';
> ctx.stroke();
> </script>
It would be great if you would propose a patch and tests. Nobody has taken this bug yet.
I think it would be best if you could write the tests using getImageData() and verifying that a couple of pixels are rendered a certain color, or at all, rather than as pixel tests. That way the precise antialiasing algorithm for curve rendering won't affect the test results.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list