LibWeb: Add missing edge visit for TextTrack in HTMLTrackElement

This commit is contained in:
Jamie Mansfield 2024-07-05 07:57:08 +01:00 committed by Andreas Kling
parent b7e505365c
commit 0a3082ef05
Notes: sideshowbarker 2024-07-17 02:29:45 +09:00
2 changed files with 7 additions and 0 deletions

View file

@ -29,6 +29,12 @@ void HTMLTrackElement::initialize(JS::Realm& realm)
WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLTrackElement);
}
void HTMLTrackElement::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
visitor.visit(m_track);
}
void HTMLTrackElement::attribute_changed(FlyString const& name, Optional<String> const& value)
{
HTMLElement::attribute_changed(name, value);

View file

@ -25,6 +25,7 @@ private:
HTMLTrackElement(DOM::Document&, DOM::QualifiedName);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
// ^DOM::Element
virtual void attribute_changed(FlyString const& name, Optional<String> const& value) override;