summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/FontCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibHTML/FontCache.h')
-rw-r--r--Libraries/LibHTML/FontCache.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Libraries/LibHTML/FontCache.h b/Libraries/LibHTML/FontCache.h
index 511158e62b..f44afd4b93 100644
--- a/Libraries/LibHTML/FontCache.h
+++ b/Libraries/LibHTML/FontCache.h
@@ -29,7 +29,9 @@
#include <AK/HashMap.h>
#include <AK/String.h>
+namespace Gfx {
class Font;
+}
struct FontSelector {
String family;
@@ -51,10 +53,10 @@ struct Traits<FontSelector> : public GenericTraits<FontSelector> {
class FontCache {
public:
static FontCache& the();
- RefPtr<Font> get(const FontSelector&) const;
- void set(const FontSelector&, NonnullRefPtr<Font>);
+ RefPtr<Gfx::Font> get(const FontSelector&) const;
+ void set(const FontSelector&, NonnullRefPtr<Gfx::Font>);
private:
FontCache() {}
- mutable HashMap<FontSelector, NonnullRefPtr<Font>> m_fonts;
+ mutable HashMap<FontSelector, NonnullRefPtr<Gfx::Font>> m_fonts;
};