Browse Source

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.
Jonas Jenwald 10 years ago
parent
commit
e8e79029b1
  1. 5
      src/display/font_loader.js

5
src/display/font_loader.js

@ -280,7 +280,10 @@ FontLoader.prototype = { @@ -280,7 +280,10 @@ FontLoader.prototype = {
// }
//
// font.attached = true;
// font.bindDOM()
// var rule = font.createFontFaceRule();
// if (rule) {
// this.insertRule(rule);
// }
// }
//
// setTimeout(callback);

Loading…
Cancel
Save