Closed
Bug 629894
Opened 15 years ago
Closed 14 years ago
createImageData and getImageData should work for sizes smaller than one pixel
Categories
(Core :: Graphics: Canvas2D, defect)
Core
Graphics: Canvas2D
Tracking
()
RESOLVED
FIXED
mozilla5
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 2 obsolete files)
2.61 KB,
patch
|
Details | Diff | Splinter Review |
The spec says
> At least one pixel's worth of image data must be returned.
We fail
http://www.w3c-test.org/html/tests/submission/PhilipTaylor/canvas/2d.imageData.create2.tiny.html
because we use JS_ValueToECMAInt32, afaict.
Assignee | ||
Comment 1•15 years ago
|
||
Summary: createImageData should work for sizes smaller than one pixel → createImageData and getImageData should work for sizes smaller than one pixel
![]() |
||
Comment 2•15 years ago
|
||
So we just need to clamp to a lower bound of 1x1?
What should happen if the passed-in values are -5 and 20?
Assignee | ||
Comment 3•15 years ago
|
||
Take the absolute magnitude. I've got a patch for that, but I still need to file.
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → Ms2ger
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•15 years ago
|
||
Attachment #510316 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•15 years ago
|
![]() |
||
Comment 5•15 years ago
|
||
So 0 is supposed to throw but 0.1 is supposed to round up to 1?
I'd prefer these be explicit == 0 tests if that's what we're testing for.
Assignee | ||
Comment 6•15 years ago
|
||
Right. Will fix.
![]() |
||
Comment 7•15 years ago
|
||
As that about the == 0 thing, or an answer to my question? Or both, in separate sentences?
Assignee | ||
Comment 8•14 years ago
|
||
To both, indeed.
Attachment #510316 -
Attachment is obsolete: true
Attachment #518755 -
Flags: review?(bzbarsky)
Attachment #510316 -
Flags: review?(bzbarsky)
![]() |
||
Comment 9•14 years ago
|
||
Comment on attachment 518755 [details] [diff] [review]
Patch v2
r=me
Attachment #518755 -
Flags: review?(bzbarsky) → review+
![]() |
||
Updated•14 years ago
|
Whiteboard: [needs landing] → [needs landing][not-ready-for-cedar]
Assignee | ||
Comment 10•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Whiteboard: [needs landing][not-ready-for-cedar]
Assignee | ||
Updated•14 years ago
|
Attachment #518755 -
Attachment is obsolete: true
![]() |
||
Comment 11•14 years ago
|
||
Flags: in-testsuite+
Whiteboard: fixed-in-cedar
![]() |
||
Comment 12•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: fixed-in-cedar
Target Milestone: --- → mozilla2.2
Updated•14 years ago
|
Keywords: dev-doc-needed
Comment 13•14 years ago
|
||
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•