Merge pull request #9320 from Snuffleupagus/pr-9095-followup

Avoid rendering errors by passing in the `webGLContext` when creating a new `CanvasGraphics` in `getColorN_Pattern` (PR 9095 follow-up)
This commit is contained in:
Tim van der Meij 2017-12-28 23:17:30 +01:00 committed by GitHub
commit 25bbff4692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -1665,7 +1665,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
var canvasGraphicsFactory = { var canvasGraphicsFactory = {
createCanvasGraphics: (ctx) => { createCanvasGraphics: (ctx) => {
return new CanvasGraphics(ctx, this.commonObjs, this.objs, return new CanvasGraphics(ctx, this.commonObjs, this.objs,
this.canvasFactory); this.canvasFactory, this.webGLContext);
}, },
}; };
pattern = new TilingPattern(IR, color, this.ctx, canvasGraphicsFactory, pattern = new TilingPattern(IR, color, this.ctx, canvasGraphicsFactory,

View File

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/55597/Florida.Industrial.MarketView.Q3.2015.pdf

View File

@ -602,6 +602,14 @@
"lastPage": 1, "lastPage": 1,
"type": "eq" "type": "eq"
}, },
{ "id": "issue6737",
"file": "pdfs/issue6737.pdf",
"md5": "6f091967ad15ba63855c56049e86c68b",
"rounds": 1,
"link": true,
"lastPage": 1,
"type": "eq"
},
{ "id": "issue5010", { "id": "issue5010",
"file": "pdfs/issue5010.pdf", "file": "pdfs/issue5010.pdf",
"md5": "419f4b13403a0871c463ec69d96e342c", "md5": "419f4b13403a0871c463ec69d96e342c",