1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibWeb: Port CSSRule::serialized from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-11-20 23:16:39 +13:00 committed by Tim Flynn
parent 890cce6fbb
commit d400291ad9
18 changed files with 30 additions and 30 deletions

View file

@ -48,7 +48,7 @@ void CSSMediaRule::set_condition_text(String const& text)
}
// https://www.w3.org/TR/cssom-1/#serialize-a-css-rule
DeprecatedString CSSMediaRule::serialized() const
String CSSMediaRule::serialized() const
{
// The result of concatenating the following:
StringBuilder builder;
@ -70,7 +70,7 @@ DeprecatedString CSSMediaRule::serialized() const
// 5. A newline, followed by the string "}", i.e., RIGHT CURLY BRACKET (U+007D)
builder.append("\n}"sv);
return builder.to_deprecated_string();
return MUST(builder.to_string());
}
}