1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57: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

@ -38,7 +38,7 @@ CSSStyleDeclaration* CSSFontFaceRule::style()
}
// https://www.w3.org/TR/cssom/#ref-for-cssfontfacerule
DeprecatedString CSSFontFaceRule::serialized() const
String CSSFontFaceRule::serialized() const
{
StringBuilder builder;
// The result of concatenating the following:
@ -137,7 +137,7 @@ DeprecatedString CSSFontFaceRule::serialized() const
// 12. A single SPACE (U+0020), followed by the string "}", i.e., RIGHT CURLY BRACKET (U+007D).
builder.append(" }"sv);
return builder.to_deprecated_string();
return MUST(builder.to_string());
}
}