mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 15:19:16 +00:00
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:
parent
aa563706ca
commit
c4b13589e9
Notes:
github-actions[bot]
2025-07-30 14:36:14 +00:00
Author: https://github.com/awesomekling
Commit: c4b13589e9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5656
7 changed files with 65 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue