LibWeb/CSS: Hide "No property (from N properties) matched foo" message

This greatly reduces the amount of log spam on certain websites.
This commit is contained in:
Sam Atkins 2025-01-29 11:19:06 +00:00 committed by Tim Ledbetter
commit 8877a4f691
Notes: github-actions[bot] 2025-01-29 12:05:17 +00:00

View file

@ -8860,9 +8860,11 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue>> Parser::parse_css_value(Prope
}
// No property matched, so we're done.
dbgln("No property (from {} properties) matched {}", unassigned_properties.size(), stream.next_token().to_debug_string());
for (auto id : unassigned_properties)
dbgln(" {}", string_from_property_id(id));
if constexpr (CSS_PARSER_DEBUG) {
dbgln("No property (from {} properties) matched {}", unassigned_properties.size(), stream.next_token().to_debug_string());
for (auto id : unassigned_properties)
dbgln(" {}", string_from_property_id(id));
}
break;
}