Browse Source

Reset the `styleElement` when clearing out loaded fonts (bug 1232017)

*This is a follow-up to PR 6571.*

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1232071.
Jonas Jenwald 9 years ago
parent
commit
f0e4795302
  1. 1
      src/display/font_loader.js

1
src/display/font_loader.js

@ -49,6 +49,7 @@ FontLoader.prototype = {
var styleElement = this.styleElement; var styleElement = this.styleElement;
if (styleElement) { if (styleElement) {
styleElement.parentNode.removeChild(styleElement); styleElement.parentNode.removeChild(styleElement);
styleElement = this.styleElement = null;
} }
//#if !(MOZCENTRAL) //#if !(MOZCENTRAL)
this.nativeFontFaces.forEach(function(nativeFontFace) { this.nativeFontFaces.forEach(function(nativeFontFace) {

Loading…
Cancel
Save