зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6b93122fab
Коммит
deeb00bdf9
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче