mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
Instead of calling invalidate_style(CSSFontLoaded) which marks the entire subtree for style recomputation, use set_needs_style_update(true) to mark only individual elements that reference the loaded font family. This is correct because element_uses_font_family() checks the computed (inherited) font-family value, so descendants inheriting the font will match individually, while descendants that override font-family to a different font are skipped entirely.
31 KiB
31 KiB