mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 14:57:35 +00:00
LibWeb: Only dump parsed CSS stylesheet if logging is enabled
This commit is contained in:
parent
d5984d296f
commit
f4b3ab19c0
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);
|
auto stylesheet = CSSStyleSheet::create(rules);
|
||||||
dump_sheet(stylesheet);
|
if constexpr (CSS_PARSER_DEBUG) {
|
||||||
|
dump_sheet(stylesheet);
|
||||||
|
}
|
||||||
return stylesheet;
|
return stylesheet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue