diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-04 18:02:33 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-06 08:54:33 +0100 |
commit | 6e19ab2bbce0b113b628e6f8e9b5c0640053933e (patch) | |
tree | 372d21b2f5dcff112f5d0089559c6af5798680d4 /Userland/Libraries/LibWeb/CSS/StyleSheet.h | |
parent | f74251606d74b504a1379ebb893fdb5529054ea5 (diff) | |
download | serenity-6e19ab2bbce0b113b628e6f8e9b5c0640053933e.zip |
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleSheet.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleSheet.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleSheet.h b/Userland/Libraries/LibWeb/CSS/StyleSheet.h index b851bc5b18..18bfacc1b4 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleSheet.h +++ b/Userland/Libraries/LibWeb/CSS/StyleSheet.h @@ -19,27 +19,27 @@ class StyleSheet : public Bindings::PlatformObject { public: virtual ~StyleSheet() = default; - virtual String type() const = 0; + virtual DeprecatedString type() const = 0; DOM::Element* owner_node() { return m_owner_node; } void set_owner_node(DOM::Element*); - String href() const { return m_location; } + DeprecatedString href() const { return m_location; } - String location() const { return m_location; } - void set_location(String location) { m_location = move(location); } + DeprecatedString location() const { return m_location; } + void set_location(DeprecatedString location) { m_location = move(location); } - String title() const { return m_title; } - void set_title(String title) { m_title = move(title); } + DeprecatedString title() const { return m_title; } + void set_title(DeprecatedString title) { m_title = move(title); } - void set_type(String type) { m_type_string = move(type); } + void set_type(DeprecatedString type) { m_type_string = move(type); } MediaList* media() const { return &m_media; } - void set_media(String media) + void set_media(DeprecatedString media) { m_media.set_media_text(media); } @@ -65,9 +65,9 @@ private: JS::GCPtr<DOM::Element> m_owner_node; JS::GCPtr<CSSStyleSheet> m_parent_style_sheet; - String m_location; - String m_title; - String m_type_string; + DeprecatedString m_location; + DeprecatedString m_title; + DeprecatedString m_type_string; bool m_disabled { false }; bool m_alternate { false }; |