Bug 1693541 - Improve uses of nsBaseHashtable and descendants and avoid multiple subsequent lookups in dom/html. r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D106112
This commit is contained in:
Simon Giesecke
2021-03-01 09:59:29 +00:00
parent 897a87f4e0
commit fba5f29d05
2 changed files with 7 additions and 8 deletions

View File

@@ -3725,7 +3725,7 @@ void HTMLMediaElement::UpdateOutputTrackSources() {
source.get(), NS_ConvertUTF16toUTF8(id).get()));
track->QueueSetAutoend(false);
MOZ_DIAGNOSTIC_ASSERT(!mOutputTrackSources.GetWeak(id));
MOZ_DIAGNOSTIC_ASSERT(!mOutputTrackSources.Contains(id));
mOutputTrackSources.InsertOrUpdate(id, RefPtr{source});
// Add the new track source to any existing output streams