LibGC+LibWeb: Mark two GC::Cell functions as MUST_UPCALL

Let's make sure that subclasses always call their base class when
overriding these virtuals:

- void finalize()
- void visit_edges(Visitor&)
This commit is contained in:
Andreas Kling
2026-01-29 20:46:37 +01:00
committed by Jelle Raaijmakers
parent 853716fec3
commit 706eb0018c
Notes: github-actions[bot] 2026-02-06 12:53:01 +00:00
16 changed files with 25 additions and 30 deletions

View File

@@ -49,6 +49,7 @@ void ResizeObserver::visit_edges(JS::Cell::Visitor& visitor)
void ResizeObserver::finalize()
{
Base::finalize();
if (m_document && m_list_node.is_in_list())
m_document->unregister_resize_observer({}, *this);
}