Closed Bug 753758 Opened 13 years ago Closed 13 years ago

Saving a canvas state doesn't carry mozFillRule

Categories

(Core :: Graphics: Canvas2D, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: tschneider, Assigned: yury)

Details

Attachments

(1 file, 1 obsolete file)

When calling save() on a CanvasRenderingContext2D instance, the current value of mozFillRule seems not to be carried, instead it's set to default value 'nonzero'. After restoring the state, it's set back to previous value. Try the following code: var ctx = document.createElement('canvas').getContext('2d'); ctx.mozFillRule = 'evenodd'; console.log(ctx.mozFillRule); // -> 'evenodd' ctx.save(); console.log(ctx.mozFillRule); // -> 'nonzero' ctx.restore(); console.log(ctx.mozFillRule); // -> 'evenodd'
Unable to replicate that with gfx.canvas.azure.enabled=false (and on Windows).
Assignee: nobody → async.processingjs
Attached patch Fixes state saving for azure (obsolete) — Splinter Review
Attachment #622722 - Flags: review?(jmuizelaar)
Comment on attachment 622722 [details] [diff] [review] Fixes state saving for azure [Approval Request Comment] Regression caused by (bug #): User impact if declined: Testing completed (on m-c, etc.): Risk to taking this patch (and alternatives if risky):
Attachment #622722 - Flags: review?(jmuizelaar) → review+
(In reply to Jeff Muizelaar [:jrmuizel] from comment #4) > Comment on attachment 622722 [details] [diff] [review] > Fixes state saving for azure > > [Approval Request Comment] > Regression caused by (bug #): > User impact if declined: > Testing completed (on m-c, etc.): > Risk to taking this patch (and alternatives if risky): Ignore the approval request comment. That was added by mistake.
Attachment #622722 - Attachment is obsolete: true
Keywords: checkin-needed
Flags: in-testsuite+
Keywords: checkin-needed
Target Milestone: --- → mozilla15
Version: unspecified → Trunk
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: