diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2019-09-25 12:42:10 +0300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-28 18:29:42 +0200 |
commit | 6491493e2697a95f5344f67c2feb41153828b40f (patch) | |
tree | e89d0e32df385bce7b049fa21b45bf068de8c664 /Libraries/LibHTML/CSS | |
parent | 235dee8c421ee26db1bf3a0574975dc5be4c7de0 (diff) | |
download | serenity-6491493e2697a95f5344f67c2feb41153828b40f.zip |
LibHTML: Hide debugging output unless HTML_DEBUG is defined
Diffstat (limited to 'Libraries/LibHTML/CSS')
-rw-r--r-- | Libraries/LibHTML/CSS/StyleResolver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibHTML/CSS/StyleResolver.cpp b/Libraries/LibHTML/CSS/StyleResolver.cpp index d18c5cde74..97c552ed8b 100644 --- a/Libraries/LibHTML/CSS/StyleResolver.cpp +++ b/Libraries/LibHTML/CSS/StyleResolver.cpp @@ -45,10 +45,14 @@ NonnullRefPtrVector<StyleRule> StyleResolver::collect_matching_rules(const Eleme } } } + +#ifdef HTML_DEBUG printf("Rules matching Element{%p}\n", &element); for (auto& rule : matching_rules) { dump_rule(rule); } +#endif + return matching_rules; } |