1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibWeb: Port CSSConditionRule interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-08-26 17:28:31 +12:00 committed by Andrew Kaster
parent ff45874d4e
commit cf733d309e
6 changed files with 13 additions and 13 deletions

View file

@ -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();