1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

LibHTML: Hide debugging output unless HTML_DEBUG is defined

This commit is contained in:
Sergey Bugaev 2019-09-25 12:42:10 +03:00 committed by Andreas Kling
parent 235dee8c42
commit 6491493e26
4 changed files with 14 additions and 0 deletions

View file

@ -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;
}