Bug 1571530 - Remove sheets from the <link> cache when they have been touched by CSS OM. r=heycam

Differential Revision: https://phabricator.services.mozilla.com/D41563

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-08-16 10:56:22 +00:00
Родитель b9e6e577b3
Коммит a61410f8ae
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -535,6 +535,9 @@ auto Loader::Sheets::Lookup(SheetLoadDataHashKey& aKey, bool aSyncLoad)
return MakeTuple(std::move(clone), SheetState::Complete);
}
LOG((" Not cloning due to forced unique inner"));
// Remove it now that we know that we're never going to use this stylesheet
// again.
lookup.Remove();
}
if (aSyncLoad) {