mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 04:52:13 +00:00
LibWeb: Use ComponentValue::is_ident("..."sv) helper
This commit is contained in:
parent
6cd6186399
commit
f69d38a346
4 changed files with 18 additions and 31 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue