mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 14:48:15 +00:00
LibWeb: Only dump parsed CSS stylesheet if logging is enabled
This commit is contained in:
committed by
Ali Mohammad Pur
parent
d5984d296f
commit
f4b3ab19c0
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user