1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

LibWeb: Fix incorrect variable names when parsing CSS

This commit is contained in:
Gunnar Beutner 2021-05-15 10:26:51 +02:00 committed by Andreas Kling
parent e0a68d4b6e
commit 704bfe54b6

View file

@ -648,7 +648,7 @@ Optional<QualifiedStyleRule> Parser::parse_as_rule()
for (;;) {
auto maybe_whitespace = peek_token();
if (!token.is_whitespace()) {
if (!maybe_whitespace.is_whitespace()) {
break;
}
next_token();
@ -710,7 +710,7 @@ Optional<StyleComponentValueRule> Parser::parse_as_component_value()
for (;;) {
auto maybe_whitespace = peek_token();
if (!token.is_whitespace()) {
if (!maybe_whitespace.is_whitespace()) {
break;
}
next_token();