mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Add better debug logging for CSS parsing errors
Hidden behind `CSS_PARSER_DEBUG`, so I won't drive everyone else crazy. :^)
This commit is contained in:
parent
5d6a4c5fc2
commit
35eb8b0dc2
Notes:
sideshowbarker
2024-07-18 03:32:34 +09:00
Author: https://github.com/AtkinsSJ
Commit: 35eb8b0dc2
Pull-request: https://github.com/SerenityOS/serenity/pull/10188
1 changed files with 6 additions and 2 deletions
|
@ -1282,8 +1282,12 @@ Optional<StyleProperty> Parser::convert_to_style_property(StyleDeclarationRule&
|
|||
auto value_token_stream = TokenStream(declaration.m_values);
|
||||
auto value = parse_css_value(property_id, value_token_stream);
|
||||
if (value.is_error()) {
|
||||
if (value.error() != ParsingResult::IncludesIgnoredVendorPrefix)
|
||||
dbgln("Unable to parse value for CSS property '{}'", property_name);
|
||||
if (value.error() != ParsingResult::IncludesIgnoredVendorPrefix) {
|
||||
dbgln("Unable to parse value for CSS property '{}'.", property_name);
|
||||
if constexpr (CSS_PARSER_DEBUG) {
|
||||
value_token_stream.dump_all_tokens();
|
||||
}
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue