[Pkg-javascript-commits] [pdf.js] 108/139: Merge pull request #5446 from CodingFabian/minorImprovementsInCanvasjs

David Prévot taffit at moszumanska.debian.org
Fri Jan 9 21:18:33 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 a018e933ea2a17abe70176a8cdc8a1ea12e61bad
Merge: 4a2c38f 5405b1c
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Thu Dec 18 15:05:52 2014 -0600

    Merge pull request #5446 from CodingFabian/minorImprovementsInCanvasjs
    
    minor improvements and code cleanup for canvas.js

 src/display/canvas.js | 83 ++++++++++++++++++++++++++-------------------------
 1 file changed, 42 insertions(+), 41 deletions(-)

diff --cc src/display/canvas.js
index cdd4564,4224354..56a8b59
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@@ -1551,16 -1549,18 +1551,18 @@@ var CanvasGraphics = (function CanvasGr
      },
      setFillColorN: function CanvasGraphics_setFillColorN(/*...*/) {
        this.current.fillColor = this.getColorN_Pattern(arguments);
+       this.current.patternFill = true;
      },
      setStrokeRGBColor: function CanvasGraphics_setStrokeRGBColor(r, g, b) {
 -      var color = Util.makeCssRgb(arguments);
 +      var color = Util.makeCssRgb(r, g, b);
        this.ctx.strokeStyle = color;
        this.current.strokeColor = color;
      },
      setFillRGBColor: function CanvasGraphics_setFillRGBColor(r, g, b) {
 -      var color = Util.makeCssRgb(arguments);
 +      var color = Util.makeCssRgb(r, g, b);
        this.ctx.fillStyle = color;
        this.current.fillColor = color;
+       this.current.patternFill = false;
      },
  
      shadingFill: function CanvasGraphics_shadingFill(patternIR) {

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