diff options
author | Sam Atkins <atkinssj@gmail.com> | 2021-07-30 15:19:17 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-08-02 19:01:25 +0430 |
commit | f4b3ab19c0118d1b77bd0eaa4050b451356bf367 (patch) | |
tree | e5f5b68708df2c12c211c85cc151c927ae20a995 /Userland/Libraries/LibWeb | |
parent | d5984d296f10a365d779d672318f37592e13a98e (diff) | |
download | serenity-f4b3ab19c0118d1b77bd0eaa4050b451356bf367.zip |
LibWeb: Only dump parsed CSS stylesheet if logging is enabled
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp index 0b1494d7a7..4ca81a9c1f 100644 --- a/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp +++ b/Userland/Libraries/LibWeb/CSS/Parser/Parser.cpp @@ -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; } |