[Pkg-javascript-commits] [pdf.js] 66/246: Add strict equalities in src/display/canvas.js

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:26 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 c1f1f2f0e10f102de2795a5fb32c3b0db7a55b52
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Aug 1 12:39:56 2014 +0200

    Add strict equalities in src/display/canvas.js
---
 src/display/canvas.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/display/canvas.js b/src/display/canvas.js
index aa49712..3f1fa76 100644
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@ -1227,7 +1227,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
       // the current transformation matrix before the fillText/strokeText.
       // See https://bugzilla.mozilla.org/show_bug.cgi?id=726227
       var browserFontSize = size >= MIN_FONT_SIZE ? size : MIN_FONT_SIZE;
-      this.current.fontSizeScale = browserFontSize != MIN_FONT_SIZE ? 1.0 :
+      this.current.fontSizeScale = browserFontSize !== MIN_FONT_SIZE ? 1.0 :
                                    size / MIN_FONT_SIZE;
 
       var rule = italic + ' ' + bold + ' ' + browserFontSize + 'px ' + typeface;
@@ -1373,7 +1373,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
         lineWidth /= scale;
       }
 
-      if (fontSizeScale != 1.0) {
+      if (fontSizeScale !== 1.0) {
         ctx.scale(fontSizeScale, fontSizeScale);
         lineWidth /= fontSizeScale;
       }

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