From 7da3b0dd7b467c48ad32228a5a112fc3806a6e78 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 16 Mar 2024 07:22:13 +0100 Subject: [PATCH] LibWeb: Avoid a FlyString->String->FlyString round-trip in StyleComputer --- Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index e8b41cd170a..3d7a496d3dc 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -1695,7 +1695,7 @@ RefPtr StyleComputer::font_matching_algorithm(FontFa if (font_key_and_loader.key.family_name.equals_ignoring_ascii_case(key.family_name)) matching_family_fonts.empend(font_key_and_loader.key, const_cast(&font_key_and_loader.value)); } - Gfx::FontDatabase::the().for_each_typeface_with_family_name(key.family_name.to_string(), [&](Gfx::Typeface const& typeface) { + Gfx::FontDatabase::the().for_each_typeface_with_family_name(key.family_name, [&](Gfx::Typeface const& typeface) { matching_family_fonts.empend( FontFaceKey { .family_name = typeface.family(),