1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWeb: Port CSS::Parser::Rule to new Strings

`Rule::to_deprecated_string()` and
`DeclarationOrAtRule::to_deprecated_string()` are not used anywhere, so
we can just delete them.
This commit is contained in:
Sam Atkins 2023-02-15 11:28:44 +00:00 committed by Tim Flynn
parent bee32b6cd2
commit 41c4cc95e4
5 changed files with 10 additions and 49 deletions

View file

@ -1518,7 +1518,7 @@ NonnullRefPtr<Rule> Parser::consume_an_at_rule(TokenStream<T>& tokens)
// Create a new at-rule with its name set to the value of the current input token, its prelude initially set to an empty list, and its value initially set to nothing.
// NOTE: We create the Rule fully initialized when we return it instead.
DeprecatedFlyString at_rule_name = ((Token)name_ident).at_keyword();
auto at_rule_name = FlyString::from_utf8(((Token)name_ident).at_keyword()).release_value_but_fixme_should_propagate_errors();
Vector<ComponentValue> prelude;
RefPtr<Block> block;