mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibWeb: Port CSSRule::serialized from DeprecatedString to String
This commit is contained in:
parent
890cce6fbb
commit
d400291ad9
18 changed files with 30 additions and 30 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue