Closed Bug 338545 Opened 18 years ago Closed 18 years ago

Canvas doesn't reset on resize

Categories

(Core :: Graphics: Canvas2D, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ian, Assigned: vlad)

References

()

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

Resizing the canvas coordinate space (changing the height and width attributes) should reset the canvas bitmap to transparent black and the context to its initial state. Currently we don't reset the stroke colour.

TESTCASES
http://hixie.ch/tests/adhoc/html/canvas/017.html
http://hixie.ch/tests/adhoc/html/canvas/018.html
http://hixie.ch/tests/adhoc/html/canvas/019.html
Attached patch fix canvas resetSplinter Review
One more small patch!  Fixes this canvas bug.
Assignee: nobody → vladimir
Status: NEW → ASSIGNED
Attachment #222631 - Flags: review?(mrbkap)
Comment on attachment 222631 [details] [diff] [review]
fix canvas reset

r=mrbkap.

For posterity, I talked with vlad about the possibility of using any of these states before SetDimension is called, and he said that it wouldn't happen.
Attachment #222631 - Flags: review?(mrbkap) → review+
Comment on attachment 222631 [details] [diff] [review]
fix canvas reset

Small spec-conformance patch for Fx2.
Attachment #222631 - Flags: approval-branch-1.8.1?
Comment on attachment 222631 [details] [diff] [review]
fix canvas reset

Marking verbal a+ from reviewer, based on what mconnor said
Attachment #222631 - Flags: approval-branch-1.8.1? → approval-branch-1.8.1+
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: