From d86bcc795d11cfca42b5e60e488547b2b6c9bb58 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 21 Jul 2025 13:13:05 +0100 Subject: [PATCH] LibWeb/CSS: Remove duplicate error reporting for invalid descriptors parse_descriptor_value() already logs this. --- Libraries/LibWeb/CSS/Parser/DescriptorParsing.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Libraries/LibWeb/CSS/Parser/DescriptorParsing.cpp b/Libraries/LibWeb/CSS/Parser/DescriptorParsing.cpp index 0674662dc67..476cfe97146 100644 --- a/Libraries/LibWeb/CSS/Parser/DescriptorParsing.cpp +++ b/Libraries/LibWeb/CSS/Parser/DescriptorParsing.cpp @@ -228,15 +228,8 @@ Optional Parser::convert_to_descriptor(AtRuleID at_rule_id, Declarat auto value_token_stream = TokenStream(declaration.value); auto value = parse_descriptor_value(at_rule_id, descriptor_id.value(), value_token_stream); - if (value.is_error()) { - if (value.error() == ParseError::SyntaxError) { - if constexpr (CSS_PARSER_DEBUG) { - dbgln("Unable to parse value for CSS @{} descriptor '{}'.", to_string(at_rule_id), declaration.name); - value_token_stream.dump_all_tokens(); - } - } + if (value.is_error()) return {}; - } return Descriptor { *descriptor_id, value.release_value() }; }