mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
Notes:
sideshowbarker
2024-07-17 19:42:08 +09:00
Author: https://github.com/AtkinsSJ
Commit: dc7e73a0b7
Pull-request: https://github.com/SerenityOS/serenity/pull/12323
Reviewed-by: https://github.com/linusg
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