Bug 1273409 - add assert for mFontEntry. r=jrmuizel

MozReview-Commit-ID: 645INbJtJFq

--HG--
extra : rebase_source : 6beea5fcd4ade24f7d45eb704334f6e0aa5f7f00
This commit is contained in:
Andi-Bogdan Postelnicu 2016-05-17 12:05:23 +03:00
parent 2cd574f25f
commit 5ddeb9e636

View File

@ -1305,15 +1305,14 @@ gfxUserFontSet::UserFontCache::Entry::ReportMemory(nsIMemoryReporterCallback* aC
nsISupports* aClosure,
bool aAnonymize)
{
MOZ_ASSERT(mFontEntry);
nsAutoCString path("explicit/gfx/user-fonts/font(");
if (aAnonymize) {
path.AppendPrintf("<anonymized-%p>", this);
} else {
if (mFontEntry) { // this should always be present
NS_ConvertUTF16toUTF8 familyName(mFontEntry->mFamilyName);
path.AppendPrintf("family=%s", familyName.get());
}
NS_ConvertUTF16toUTF8 familyName(mFontEntry->mFamilyName);
path.AppendPrintf("family=%s", familyName.get());
if (mURI) {
nsCString spec;
mURI->GetSpec(spec);