Closed
Bug 632469
Opened 14 years ago
Closed 14 years ago
Handle non-finite values for clearRect per spec
Categories
(Core :: Graphics: Canvas2D, defect)
Core
Graphics: Canvas2D
Tracking
()
RESOLVED
FIXED
mozilla5
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
Details
(Keywords: dev-doc-complete, html5)
Attachments
(1 file, 1 obsolete file)
1.43 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Flags: in-testsuite+
Attachment #510676 -
Flags: review?(Olli.Pettay)
Comment 1•14 years ago
|
||
Comment on attachment 510676 [details] [diff] [review] Patch v1 So why doesn't .clearRect throw? Seems like canvas API is all but consistent when to throw and when not.
Assignee | ||
Comment 2•14 years ago
|
||
I apparently was wrong before. The spec silently ignores all non-finite arguments, except when creating CanvasGradient and ImageData objects, and it throws for negative radii, which, I suppose, would be caused by a bogus calculation.
Updated•14 years ago
|
Attachment #510676 -
Flags: review?(Olli.Pettay) → review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Whiteboard: [needs landing]
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #510676 -
Attachment is obsolete: true
Comment 4•14 years ago
|
||
http://hg.mozilla.org/projects/cedar/rev/69bd065b7fa8
Whiteboard: fixed-in-cedar
Comment 5•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/69bd065b7fa8
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
No longer depends on: post2.0
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: fixed-in-cedar
Target Milestone: --- → mozilla2.2
Updated•14 years ago
|
Keywords: dev-doc-needed
Comment 6•14 years ago
|
||
https://developer.mozilla.org/en/DOM/CanvasRenderingContext2D#Notes
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•