LibWeb: Don't dump all stylesheets with CSS_PARSER_DEBUG enabled

Browser has a handy debug menu option to dump all stylesheets, so we
don't need to spam the console with this. (All the spam massively slows
down page loads.)
This commit is contained in:
Sam Atkins 2022-02-06 20:17:01 +00:00 committed by Andreas Kling
commit dc7e73a0b7
Notes: sideshowbarker 2024-07-17 19:42:08 +09:00

View file

@ -176,11 +176,7 @@ NonnullRefPtr<CSSStyleSheet> Parser::parse_a_stylesheet(TokenStream<T>& tokens)
rules.append(*rule);
}
auto stylesheet = CSSStyleSheet::create(rules);
if constexpr (CSS_PARSER_DEBUG) {
dump_sheet(stylesheet);
}
return stylesheet;
return CSSStyleSheet::create(rules);
}
Optional<SelectorList> Parser::parse_as_selector()