mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Port CSSConditionRule interface from DeprecatedString to String
This commit is contained in:
committed by
Andrew Kaster
parent
ff45874d4e
commit
cf733d309e
@@ -28,12 +28,12 @@ void CSSSupportsRule::initialize(JS::Realm& realm)
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::CSSSupportsRulePrototype>(realm, "CSSSupportsRule"));
|
||||
}
|
||||
|
||||
DeprecatedString CSSSupportsRule::condition_text() const
|
||||
String CSSSupportsRule::condition_text() const
|
||||
{
|
||||
return m_supports->to_string().to_deprecated_string();
|
||||
return m_supports->to_string();
|
||||
}
|
||||
|
||||
void CSSSupportsRule::set_condition_text(DeprecatedString text)
|
||||
void CSSSupportsRule::set_condition_text(String const& text)
|
||||
{
|
||||
if (auto new_supports = parse_css_supports(Parser::ParsingContext { realm() }, text))
|
||||
m_supports = new_supports.release_nonnull();
|
||||
|
||||
Reference in New Issue
Block a user