mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Empend instead of Appending DeclarationOrAtRules
This commit is contained in:
parent
782cdd6b91
commit
128d08ecef
Notes:
sideshowbarker
2024-07-17 11:51:47 +09:00
Author: https://github.com/AtkinsSJ
Commit: 128d08ecef
Pull-request: https://github.com/SerenityOS/serenity/pull/13643
1 changed files with 2 additions and 2 deletions
|
@ -2049,7 +2049,7 @@ Vector<DeclarationOrAtRule> Parser::consume_a_list_of_declarations(TokenStream<T
|
|||
tokens.reconsume_current_input_token();
|
||||
|
||||
// Consume an at-rule. Append the returned rule to the list of declarations.
|
||||
list_of_declarations.append(DeclarationOrAtRule(consume_an_at_rule(tokens)));
|
||||
list_of_declarations.empend(consume_an_at_rule(tokens));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -2071,7 +2071,7 @@ Vector<DeclarationOrAtRule> Parser::consume_a_list_of_declarations(TokenStream<T
|
|||
// Consume a declaration from the temporary list. If anything was returned, append it to the list of declarations.
|
||||
auto token_stream = TokenStream(temporary_list);
|
||||
if (auto maybe_declaration = consume_a_declaration(token_stream); maybe_declaration.has_value())
|
||||
list_of_declarations.append(DeclarationOrAtRule(maybe_declaration.value()));
|
||||
list_of_declarations.empend(maybe_declaration.value());
|
||||
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue