[Pkg-javascript-commits] [pdf.js] 160/207: Added paintSolidColorImageMask

David Prévot taffit at moszumanska.debian.org
Mon Jul 28 15:36:43 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit d799a18b7457f08e1086945e9d2794b44d56d96b
Author: pramodhkp <prmdh1 at gmail.com>
Date:   Wed Jun 25 01:46:50 2014 +0530

    Added paintSolidColorImageMask
---
 src/display/svg.js | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/display/svg.js b/src/display/svg.js
index 7d44d3e..fcfe58f 100644
--- a/src/display/svg.js
+++ b/src/display/svg.js
@@ -300,6 +300,9 @@ var SVGGraphics = (function SVGGraphicsClosure(ctx) {
           case OPS.fillStroke:
             this.fillStroke();
             break;
+          case OPS.paintSolidColorImageMask:
+            this.paintSolidColorImageMask();
+            break;
           case OPS.closePath:
             this.closePath();
             break;
@@ -670,6 +673,17 @@ var SVGGraphics = (function SVGGraphicsClosure(ctx) {
       this.closePath();
       this.fillStroke();
     },
+    paintSolidColorImageMask:
+      function SVGGraphics_paintSolidColorImageMask() {
+        var current = this.current;
+        var rect = document.createElementNS(NS, 'svg:rect');
+        rect.setAttributeNS(null, 'x', 0);
+        rect.setAttributeNS(null, 'y', 0);
+        rect.setAttributeNS(null, 'width', 1);
+        rect.setAttributeNS(null, 'height', 1);
+        rect.setAttributeNS(null, 'fill', current.fillColor);
+        this.tgrp.appendChild(rect);
+    },
   };
   return SVGGraphics;
 })();

-- 
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