mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
LibWeb: Invalidate styles on font load
It is not sufficient to just invalidate layout when a new font has loaded, because while it was loading we might have chosen a fallback font-family value instead. Invalidate style instead.
This commit is contained in:
parent
50f9a86086
commit
3bd1d8bf6c
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/fahrradflucht
Commit: 3bd1d8bf6c
Pull-request: https://github.com/SerenityOS/serenity/pull/17858
1 changed files with 1 additions and 1 deletions
|
@ -1582,7 +1582,7 @@ CSSPixelRect StyleComputer::viewport_rect() const
|
|||
|
||||
void StyleComputer::did_load_font([[maybe_unused]] FlyString const& family_name)
|
||||
{
|
||||
document().invalidate_layout();
|
||||
document().invalidate_style();
|
||||
}
|
||||
|
||||
void StyleComputer::load_fonts_from_sheet(CSSStyleSheet const& sheet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue