LibWeb: Make StyleComputer and FontLoader GC-allocated

This allows them to keep style sheets alive while loading fonts for
them. Fixes some GC crashes seen on the WPT WOFF2 tests after
66a19b8550 stopped FetchRecord leaks from
keeping various other things alive.
This commit is contained in:
Andreas Kling 2025-07-30 14:38:41 +02:00 committed by Andreas Kling
commit c4b13589e9
Notes: github-actions[bot] 2025-07-30 14:36:14 +00:00
7 changed files with 65 additions and 39 deletions

View file

@ -128,6 +128,7 @@ void CSSStyleSheet::visit_edges(Cell::Visitor& visitor)
visitor.visit(m_namespace_rules);
visitor.visit(m_import_rules);
visitor.visit(m_owning_documents_or_shadow_roots);
visitor.visit(m_associated_font_loaders);
}
// https://www.w3.org/TR/cssom/#dom-cssstylesheet-insertrule