mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Only dump parsed CSS stylesheet if logging is enabled
This commit is contained in:
parent
d5984d296f
commit
f4b3ab19c0
Notes:
sideshowbarker
2024-07-18 07:35:00 +09:00
Author: https://github.com/AtkinsSJ
Commit: f4b3ab19c0
Pull-request: https://github.com/SerenityOS/serenity/pull/9121
Reviewed-by: https://github.com/Dexesttp ✅
Reviewed-by: https://github.com/alimpfard
1 changed files with 3 additions and 1 deletions
|
@ -173,7 +173,9 @@ NonnullRefPtr<CSSStyleSheet> Parser::parse_as_stylesheet(TokenStream<T>& tokens)
|
|||
}
|
||||
|
||||
auto stylesheet = CSSStyleSheet::create(rules);
|
||||
dump_sheet(stylesheet);
|
||||
if constexpr (CSS_PARSER_DEBUG) {
|
||||
dump_sheet(stylesheet);
|
||||
}
|
||||
return stylesheet;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue