WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 37176
24668
Canvas arc gives exceptions on r<0
https://bugs.webkit.org/show_bug.cgi?id=24668
Summary
Canvas arc gives exceptions on r<0
Dirk Schulze
Reported
2009-03-18 02:55:42 PDT
Our canvas code gives exceptions on r<0 for arc. This behavior matches the spec, but breaks some sites like this above.
Attachments
silent return for r<0
(3.19 KB, patch)
2009-03-18 03:03 PDT
,
Dirk Schulze
eric
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dirk Schulze
Comment 1
2009-03-18 03:03:45 PDT
Created
attachment 28720
[details]
silent return for r<0 patch
Darin Adler
Comment 2
2009-03-18 09:28:30 PDT
What’s our strategy on this for canvas? If the spec is wrong I think we need to get the spec fixed too, and not just change our implementation. Have we been doing this same type of thing for other canvas issues?
Dirk Schulze
Comment 3
2009-03-18 10:43:00 PDT
It's ok to return if r<0, but there is no need to throw an exception here. The same for arcTo. It's maybe the best way to adjust the spec.
Eric Seidel (no email)
Comment 4
2009-03-26 11:09:15 PDT
Comment on
attachment 28720
[details]
silent return for r<0 We should match the spec. Even if that means the spec should be changed here. This change would also require a test case (preferably a new js-style test). I suggest you add a test to check our behavior regardless. Then at least we know when we change our behavior later to match any changes in the spec.
Oliver Hunt
Comment 5
2009-03-26 14:20:06 PDT
Comment on
attachment 28720
[details]
silent return for r<0 dirk and i already discussed this -- he's going to email whatwg's mailing list to get the spec changed.
Oliver Hunt
Comment 6
2009-03-26 14:21:01 PDT
Comment on
attachment 28720
[details]
silent return for r<0 Oh, needs a layout test :D
Dirk Schulze
Comment 7
2009-04-08 13:48:49 PDT
Sorry for my absence. I'll upload a layout test in the next days.
Eric Seidel (no email)
Comment 8
2009-04-29 14:12:08 PDT
Comment on
attachment 28720
[details]
silent return for r<0 Marking as r- due to lack of layout test.
Dirk Schulze
Comment 9
2009-04-30 03:52:40 PDT
Ian Hixie denied the change of the spec. (for the moment ;-))
http://www.nabble.com/Canvas---Exception-on-arc-with-negative-radius-td22748785.html
Dirk Schulze
Comment 10
2009-05-02 15:16:35 PDT
Opened a bug in bugzilla.mozilla.org (
https://bugzilla.mozilla.org/show_bug.cgi?id=491150
). Let's see their opinion.
Dirk Schulze
Comment 11
2010-05-24 12:06:47 PDT
*** This bug has been marked as a duplicate of
bug 37176
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug