Closed
Bug 753758
Opened 13 years ago
Closed 13 years ago
Saving a canvas state doesn't carry mozFillRule
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: tschneider, Assigned: yury)
Details
Attachments
(1 file, 1 obsolete file)
3.08 KB,
patch
|
Details | Diff | Splinter Review |
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'
Assignee | ||
Comment 1•13 years ago
|
||
Unable to replicate that with gfx.canvas.azure.enabled=false (and on Windows).
Assignee | ||
Comment 2•13 years ago
|
||
that's just copy'n'paste mistake http://mxr.mozilla.org/mozilla-central/source/content/canvas/src/nsCanvasRenderingContext2DAzure.cpp#703
Assignee: nobody → async.processingjs
Assignee | ||
Comment 3•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #622722 -
Flags: review?(jmuizelaar)
Comment 4•13 years ago
|
||
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+
Comment 5•13 years ago
|
||
(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.
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #622722 -
Attachment is obsolete: true
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 7•13 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Target Milestone: --- → mozilla15
Version: unspecified → Trunk
Comment 8•13 years ago
|
||
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.
Description
•