Bug 1637039 - Use `RemoveSelf` when removing preload for a font on its use (cosmetic, no functional change), r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D76366
This commit is contained in:
Honza Bambas 2020-05-25 18:39:51 +00:00
Родитель 6b93122fab
Коммит deeb00bdf9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -592,7 +592,7 @@ nsresult FontFaceSet::StartLoad(gfxUserFontEntry* aUserFontEntry,
// We don't want this to hang around regardless of the result, there will be
// no coalescing of later found <link preload> tags for fonts.
mDocument->Preloads().DeregisterPreload(&preloadKey);
preload->RemoveSelf(mDocument);
} else {
// No preload found, open a channel.
rv = NS_ERROR_FAILURE;