1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +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

@ -56,7 +56,7 @@ void CSSImportRule::visit_edges(Cell::Visitor& visitor)
}
// https://www.w3.org/TR/cssom/#serialize-a-css-rule
DeprecatedString CSSImportRule::serialized() const
String CSSImportRule::serialized() const
{
StringBuilder builder;
// The result of concatenating the following:
@ -75,7 +75,7 @@ DeprecatedString CSSImportRule::serialized() const
// 4. The string ";", i.e., SEMICOLON (U+003B).
builder.append(';');
return builder.to_deprecated_string();
return MUST(builder.to_string());
}
void CSSImportRule::resource_did_fail()