1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

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
parent 3758dffd16
commit dc7e73a0b7

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()