mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
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 :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue