mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
LibWeb: Use String for getting/setting MediaQueryList media
This commit is contained in:
parent
6dbc3044bd
commit
ef1e942f3e
6 changed files with 7 additions and 7 deletions
|
@ -43,9 +43,9 @@ void MediaQueryList::visit_edges(Cell::Visitor& visitor)
|
|||
}
|
||||
|
||||
// https://drafts.csswg.org/cssom-view/#dom-mediaquerylist-media
|
||||
DeprecatedString MediaQueryList::media() const
|
||||
String MediaQueryList::media() const
|
||||
{
|
||||
return serialize_a_media_query_list(m_media).to_deprecated_string();
|
||||
return serialize_a_media_query_list(m_media);
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/cssom-view/#dom-mediaquerylist-matches
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
|
||||
virtual ~MediaQueryList() override = default;
|
||||
|
||||
DeprecatedString media() const;
|
||||
String media() const;
|
||||
bool matches() const;
|
||||
bool evaluate();
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
return m_media;
|
||||
}
|
||||
|
||||
void set_media(DeprecatedString media)
|
||||
void set_media(String media)
|
||||
{
|
||||
m_media->set_media_text(media);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue