[Pkg-javascript-commits] [pdf.js] 15/141: Merge pull request #4512 from fkaelberer/cleanUpStringConversion

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 22:40:25 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 20f6dedea79367e0516ae0da62bb02a3ee0ef4d3
Merge: dc0e60d c978c02
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Wed Apr 2 08:04:06 2014 -0500

    Merge pull request #4512 from fkaelberer/cleanUpStringConversion
    
    Clean up duplicate string conversion functions

 src/core/font_renderer.js  |  5 ++--
 src/core/fonts.js          | 66 +++++++++++-----------------------------------
 src/display/font_loader.js | 12 +++------
 src/shared/util.js         | 32 +++++++++++++++++-----
 4 files changed, 47 insertions(+), 68 deletions(-)

diff --cc src/display/font_loader.js
index d5745e3,5d4e7eb..2083ea7
--- a/src/display/font_loader.js
+++ b/src/display/font_loader.js
@@@ -163,16 -164,9 +164,9 @@@ var FontLoader = 
                 (data.charCodeAt(offset + 3) & 0xff);
        }
  
-       function string32(value) {
-         return String.fromCharCode((value >> 24) & 0xff) +
-                String.fromCharCode((value >> 16) & 0xff) +
-                String.fromCharCode((value >> 8) & 0xff) +
-                String.fromCharCode(value & 0xff);
-       }
- 
        function spliceString(s, offset, remove, insert) {
 -        var chunk1 = data.substr(0, offset);
 -        var chunk2 = data.substr(offset + remove);
 +        var chunk1 = s.substr(0, offset);
 +        var chunk2 = s.substr(offset + remove);
          return chunk1 + insert + chunk2;
        }
  

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