1
Fork 0
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:
Sam Atkins 2023-11-21 12:08:39 +00:00 committed by Andreas Kling
parent 6cd6186399
commit f69d38a346
4 changed files with 18 additions and 31 deletions

View file

@ -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)