LibWeb: Add missing calls to Base::children_changed

Also making sure that it is called at the top of the implementation
for consistency.
This commit is contained in:
Shannon Booth
2025-01-26 13:49:39 +13:00
committed by Tim Ledbetter
parent 22a7cd9700
commit 14eb081af8
5 changed files with 8 additions and 2 deletions

View File

@@ -768,6 +768,8 @@ GC_DEFINE_ALLOCATOR(SourceElementSelector);
void HTMLMediaElement::children_changed()
{
Base::children_changed();
if (m_source_element_selector)
m_source_element_selector->process_next_candidate().release_value_but_fixme_should_propagate_errors();
}