diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-01-08 19:23:00 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-09 23:00:24 +0000 |
commit | f3db548a3d068c051c4d6eba970b89422a6b9522 (patch) | |
tree | df8846e5699175b425ca8d07b7b6350c0a04dcf7 /Userland/Libraries/LibWeb/CSS/FontFace.h | |
parent | 2eacc7aec1b2b1cc5a491727baa75817ca819bc5 (diff) | |
download | serenity-f3db548a3d068c051c4d6eba970b89422a6b9522.zip |
AK+Everywhere: Rename FlyString to DeprecatedFlyString
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so
let's rename it to A) match the name of DeprecatedString, B) write a new
FlyString class that is tied to String.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/FontFace.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/FontFace.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/FontFace.h b/Userland/Libraries/LibWeb/CSS/FontFace.h index cbabd7a018..77cd7f9e8f 100644 --- a/Userland/Libraries/LibWeb/CSS/FontFace.h +++ b/Userland/Libraries/LibWeb/CSS/FontFace.h @@ -6,7 +6,7 @@ #pragma once -#include <AK/FlyString.h> +#include <AK/DeprecatedFlyString.h> #include <AK/URL.h> #include <LibWeb/CSS/UnicodeRange.h> @@ -17,19 +17,19 @@ public: struct Source { AK::URL url; // FIXME: Do we need to keep this around, or is it only needed to discard unwanted formats during parsing? - Optional<FlyString> format; + Optional<DeprecatedFlyString> format; }; - FontFace(FlyString font_family, Vector<Source> sources, Vector<UnicodeRange> unicode_ranges); + FontFace(DeprecatedFlyString font_family, Vector<Source> sources, Vector<UnicodeRange> unicode_ranges); ~FontFace() = default; - FlyString font_family() const { return m_font_family; } + DeprecatedFlyString font_family() const { return m_font_family; } Vector<Source> const& sources() const { return m_sources; } Vector<UnicodeRange> const& unicode_ranges() const { return m_unicode_ranges; } // FIXME: font-style, font-weight, font-stretch, font-feature-settings private: - FlyString m_font_family; + DeprecatedFlyString m_font_family; Vector<Source> m_sources; Vector<UnicodeRange> m_unicode_ranges; }; |