mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +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:
parent
df49a6ae9b
commit
f64c175960
1 changed files with 1 additions and 1 deletions
|
@ -1344,7 +1344,7 @@ Gfx::IntRect StyleComputer::viewport_rect() const
|
||||||
|
|
||||||
void StyleComputer::did_load_font([[maybe_unused]] FlyString const& family_name)
|
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)
|
void StyleComputer::load_fonts_from_sheet(CSSStyleSheet const& sheet)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue