Merge pull request #5480 from CodingFabian/issue-5458

Remove TryCatch in canvas for EvenOdd winding rule.
This commit is contained in:
Tim van der Meij 2015-10-04 15:31:34 +02:00
commit dd9d0b8770
2 changed files with 6 additions and 14 deletions

View file

@ -1099,12 +1099,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
ctx.fill();
ctx.mozFillRule = 'nonzero';
} else {
try {
ctx.fill('evenodd');
} catch (ex) {
// shouldn't really happen, but browsers might think differently
ctx.fill();
}
ctx.fill('evenodd');
}
this.pendingEOFill = false;
} else {
@ -2117,12 +2112,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
ctx.clip();
ctx.mozFillRule = 'nonzero';
} else {
try {
ctx.clip('evenodd');
} catch (ex) {
// shouldn't really happen, but browsers might think differently
ctx.clip();
}
ctx.clip('evenodd');
}
} else {
ctx.clip();