mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
LibHTML: Hide debugging output unless HTML_DEBUG is defined
This commit is contained in:
parent
235dee8c42
commit
6491493e26
Notes:
sideshowbarker
2024-07-19 11:55:39 +09:00
Author: https://github.com/bugaevc
Commit: 6491493e26
Pull-request: https://github.com/SerenityOS/serenity/pull/609
Reviewed-by: https://github.com/awesomekling ✅
4 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue