Skip to content

Commit 7ff7458

Browse files
emilioDonalMe
authored andcommitted
Bug 1986533 - Remove an invalid assertion. r=jwatt, a=dmeehan
The previous patch exposes some assertion failures in test_font_loading_api, but it's pre-existing because `font-family: ""` and new FontFace('""', ...) is totally valid. Differential Revision: https://phabricator.services.mozilla.com/D265274
1 parent a4fea36 commit 7ff7458

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

gfx/thebes/gfxUserFontSet.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,9 +1230,6 @@ bool gfxUserFontSet::UserFontCache::Entry::KeyEquals(
12301230
}
12311231

12321232
void gfxUserFontSet::UserFontCache::CacheFont(gfxFontEntry* aFontEntry) {
1233-
NS_ASSERTION(aFontEntry->mFamilyName.Length() != 0,
1234-
"caching a font associated with no family yet");
1235-
12361233
// if caching is disabled, simply return
12371234
if (StaticPrefs::gfx_downloadable_fonts_disable_cache()) {
12381235
return;

0 commit comments

Comments
 (0)