mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
LibWeb: Use ComponentValue::is_ident("..."sv) helper
This commit is contained in:
committed by
Andreas Kling
parent
6cd6186399
commit
f69d38a346
@@ -497,7 +497,7 @@ RefPtr<StyleValue> Parser::parse_radial_gradient_function(ComponentValue const&
|
||||
return nullptr;
|
||||
|
||||
auto& token = tokens.peek_token();
|
||||
if (token.is(Token::Type::Ident) && token.token().ident().equals_ignoring_ascii_case("at"sv)) {
|
||||
if (token.is_ident("at"sv)) {
|
||||
(void)tokens.next_token();
|
||||
auto position = parse_position_value(tokens);
|
||||
if (!position)
|
||||
|
||||
Reference in New Issue
Block a user