mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibWeb: Port FontCache to new Strings
This commit is contained in:
parent
faab2fe101
commit
1c77867c78
Notes:
sideshowbarker
2024-07-17 00:03:47 +09:00
Author: https://github.com/AtkinsSJ
Commit: 1c77867c78
Pull-request: https://github.com/SerenityOS/serenity/pull/17500
Reviewed-by: https://github.com/trflynn89
4 changed files with 18 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
|
||||
* Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -73,7 +73,7 @@ public:
|
|||
|
||||
Gfx::Font const& initial_font() const;
|
||||
|
||||
void did_load_font(DeprecatedFlyString const& family_name);
|
||||
void did_load_font(FlyString const& family_name);
|
||||
|
||||
void load_fonts_from_sheet(CSSStyleSheet const&);
|
||||
|
||||
|
@ -118,7 +118,7 @@ private:
|
|||
OwnPtr<RuleCache> m_rule_cache;
|
||||
|
||||
class FontLoader;
|
||||
HashMap<DeprecatedString, NonnullOwnPtr<FontLoader>> m_loaded_fonts;
|
||||
HashMap<String, NonnullOwnPtr<FontLoader>> m_loaded_fonts;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue