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:
parent
3758dffd16
commit
dc7e73a0b7
1 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue