mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Invalidate layout whenever a CSS font is loaded
It's not enough to invalidate only the style, we have to do a full layout invalidation since new fonts might mean new metrics, etc.
This commit is contained in:
@@ -1344,7 +1344,7 @@ Gfx::IntRect StyleComputer::viewport_rect() const
|
||||
|
||||
void StyleComputer::did_load_font([[maybe_unused]] FlyString const& family_name)
|
||||
{
|
||||
document().invalidate_style();
|
||||
document().invalidate_layout();
|
||||
}
|
||||
|
||||
void StyleComputer::load_fonts_from_sheet(CSSStyleSheet const& sheet)
|
||||
|
||||
Reference in New Issue
Block a user