mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
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:
parent
6b93122fab
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user