LibWeb: Replace MarkedVector with Vector in AudioTrackList

There's no need to make the m_audio_tracks entries heap roots, we can
visit them instead.
This commit is contained in:
Idan Horowitz 2024-04-05 20:13:51 +03:00 committed by Andreas Kling
commit 46ad9d51df
Notes: sideshowbarker 2024-07-16 22:14:49 +09:00
4 changed files with 10 additions and 2 deletions

View file

@ -119,4 +119,11 @@ WebIDL::CallbackType* AudioTrackList::onremovetrack()
return event_handler_attribute(HTML::EventNames::removetrack);
}
void AudioTrackList::visit_edges(JS::Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
for (auto const& track : m_audio_tracks)
visitor.visit(track);
}
}