[Pkg-javascript-commits] [pdf.js] 82/115: Fixes canvas state after smask group ends.
David Prévot
taffit at moszumanska.debian.org
Wed Dec 16 20:03:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit d4843ebf6d87d3a4cd6b477db3fee8ef3514cf2d
Author: Yury Delendik <ydelendik at mozilla.com>
Date: Thu Dec 3 14:34:12 2015 -0600
Fixes canvas state after smask group ends.
---
src/display/canvas.js | 1 +
test/pdfs/issue6032.pdf.link | 1 +
test/test_manifest.json | 8 ++++++++
3 files changed, 10 insertions(+)
diff --git a/src/display/canvas.js b/src/display/canvas.js
index 723ec16..0ffe01d 100644
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@ -973,6 +973,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
composeSMask(this.ctx, this.current.activeSMask, groupCtx);
this.ctx.restore();
+ copyCtxState(groupCtx, this.ctx);
},
save: function CanvasGraphics_save() {
this.ctx.save();
diff --git a/test/pdfs/issue6032.pdf.link b/test/pdfs/issue6032.pdf.link
new file mode 100644
index 0000000..3f0f739
--- /dev/null
+++ b/test/pdfs/issue6032.pdf.link
@@ -0,0 +1 @@
+http://web.archive.org/web/20151203200805/http://www.barkleyus.com/files/moonshot_techroadmap_poster.pdf
diff --git a/test/test_manifest.json b/test/test_manifest.json
index 054faf0..7e907db 100644
--- a/test/test_manifest.json
+++ b/test/test_manifest.json
@@ -1324,6 +1324,14 @@
"type": "eq"
},
{
+ "id": "issue6032",
+ "file": "pdfs/issue6032.pdf",
+ "md5": "88b4cc989f5a1e072b992dec5635e83c",
+ "rounds": 1,
+ "link": true,
+ "type": "eq"
+ },
+ {
"id": "issue6019-text",
"file": "pdfs/issue6019.pdf",
"md5": "7a2e5dda3b0fc5c2e9060e378a8cdc4e",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list