diff options
author | Mathis Wiehl <mail@mathiswiehl.de> | 2023-03-14 20:57:39 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-14 21:07:44 +0100 |
commit | 3bd1d8bf6c076085d50580ade3758dacf937874d (patch) | |
tree | bb46652e17798e94670aeb180e82dd9b4f7782be /Userland/Libraries | |
parent | 50f9a8608618d0780b6a5be1981992f787348140 (diff) | |
download | serenity-3bd1d8bf6c076085d50580ade3758dacf937874d.zip |
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.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index ab1c11534e..7f13e771fd 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -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) |