summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibWeb/FontCache.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Libraries/LibWeb/FontCache.h b/Libraries/LibWeb/FontCache.h
index 159d7221e5..2a88f706e8 100644
--- a/Libraries/LibWeb/FontCache.h
+++ b/Libraries/LibWeb/FontCache.h
@@ -26,13 +26,14 @@
#pragma once
+#include <AK/FlyString.h>
#include <AK/HashMap.h>
#include <AK/String.h>
#include <LibGfx/Forward.h>
struct FontSelector {
- String family;
- String weight;
+ FlyString family;
+ FlyString weight;
bool operator==(const FontSelector& other) const
{
@@ -54,6 +55,6 @@ public:
void set(const FontSelector&, NonnullRefPtr<Gfx::Font>);
private:
- FontCache() {}
+ FontCache() { }
mutable HashMap<FontSelector, NonnullRefPtr<Gfx::Font>> m_fonts;
};