bug 665360 - hold reference to font family from loader. r=jdaggett

This commit is contained in:
Jonathan Kew 2011-08-09 08:51:46 +01:00
parent 1ea403f841
commit 65ca3acc2e
2 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,7 @@ nsFontFaceLoader::nsFontFaceLoader(gfxProxyFontEntry *aProxy, nsIURI *aFontURI,
: mFontEntry(aProxy), mFontURI(aFontURI), mFontSet(aFontSet),
mChannel(aChannel)
{
mFontFamily = aProxy->Family();
}
nsFontFaceLoader::~nsFontFaceLoader()

View File

@ -145,6 +145,7 @@ public:
private:
nsRefPtr<gfxProxyFontEntry> mFontEntry;
nsRefPtr<gfxFontFamily> mFontFamily;
nsCOMPtr<nsIURI> mFontURI;
nsRefPtr<nsUserFontSet> mFontSet;
nsCOMPtr<nsIChannel> mChannel;