mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
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:
committed by
Andreas Kling
parent
270e0d4b58
commit
46ad9d51df
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user