mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Merge pull request #5480 from CodingFabian/issue-5458
Remove TryCatch in canvas for EvenOdd winding rule.
This commit is contained in:
commit
dd9d0b8770
2 changed files with 6 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue