mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 1273409 - add assert for mFontEntry. r=jrmuizel
MozReview-Commit-ID: 645INbJtJFq --HG-- extra : rebase_source : 6beea5fcd4ade24f7d45eb704334f6e0aa5f7f00
This commit is contained in:
parent
2cd574f25f
commit
5ddeb9e636
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user