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

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

This commit is contained in:
Sam Atkins 2023-02-14 18:55:59 +00:00 committed by Tim Flynn
parent 86d23c63a4
commit 05c1b09621
5 changed files with 20 additions and 19 deletions

View file

@ -1801,7 +1801,7 @@ NonnullRefPtr<Function> Parser::consume_a_function(TokenStream<T>& tokens)
// Create a function with its name equal to the value of the current input token
// and with its value initially set to an empty list.
// NOTE: We create the Function fully initialized when we return it instead.
DeprecatedFlyString function_name = ((Token)name_ident).function();
auto function_name = FlyString::from_utf8(((Token)name_ident).function()).release_value_but_fixme_should_propagate_errors();
Vector<ComponentValue> function_values;
// Repeatedly consume the next input token and process it as follows: