mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57: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
|
@ -42,7 +42,7 @@ void CSSSupportsRule::set_condition_text(String const& text)
|
|||
}
|
||||
|
||||
// https://www.w3.org/TR/cssom-1/#serialize-a-css-rule
|
||||
DeprecatedString CSSSupportsRule::serialized() const
|
||||
String CSSSupportsRule::serialized() const
|
||||
{
|
||||
// Note: The spec doesn't cover this yet, so I'm roughly following the spec for the @media rule.
|
||||
// It should be pretty close!
|
||||
|
@ -61,7 +61,7 @@ DeprecatedString CSSSupportsRule::serialized() const
|
|||
}
|
||||
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