[Pkg-javascript-commits] [pdf.js] 65/115: Replace `font.bindDOM()` with `font.createFontFaceRule()` in the `FontLoader` for MOZCENTRAL specific code (PR 6571 follow-up)

David Prévot taffit at moszumanska.debian.org
Wed Dec 16 20:03:16 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 e8e79029b1a9f12d46730bc82fa8329f9901239a
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Sat Nov 28 21:33:07 2015 +0100

    Replace `font.bindDOM()` with `font.createFontFaceRule()` in the `FontLoader` for MOZCENTRAL specific code (PR 6571 follow-up)
    
    This is a follow-up to PR 6571, and fixes font loading in the `MOZCENTRAL` version.
    
    Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1228603#c2.
---
 src/display/font_loader.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/display/font_loader.js b/src/display/font_loader.js
index 73f902f..2c917b2 100644
--- a/src/display/font_loader.js
+++ b/src/display/font_loader.js
@@ -280,7 +280,10 @@ FontLoader.prototype = {
 //    }
 //
 //    font.attached = true;
-//    font.bindDOM()
+//    var rule = font.createFontFaceRule();
+//    if (rule) {
+//      this.insertRule(rule);
+//    }
 //  }
 //
 //  setTimeout(callback);

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