Dump.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
  3. * Copyright (c) 2021, the SerenityOS developers.
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <AK/Forward.h>
  9. #include <LibWeb/Forward.h>
  10. namespace Web {
  11. void dump_tree(StringBuilder&, DOM::Node const&);
  12. void dump_tree(DOM::Node const&);
  13. void dump_tree(StringBuilder&, Layout::Node const&, bool show_box_model = false, bool show_specified_style = false, bool colorize = false);
  14. void dump_tree(Layout::Node const&, bool show_box_model = true, bool show_specified_style = false);
  15. void dump_sheet(StringBuilder&, CSS::StyleSheet const&);
  16. void dump_sheet(CSS::StyleSheet const&);
  17. void dump_rule(StringBuilder&, CSS::CSSRule const&, int indent_levels = 0);
  18. void dump_rule(CSS::CSSRule const&);
  19. void dump_style_rule(StringBuilder&, CSS::CSSStyleRule const&, int indent_levels = 0);
  20. void dump_import_rule(StringBuilder&, CSS::CSSImportRule const&, int indent_levels = 0);
  21. void dump_media_rule(StringBuilder&, CSS::CSSMediaRule const&, int indent_levels = 0);
  22. void dump_supports_rule(StringBuilder&, CSS::CSSSupportsRule const&, int indent_levels = 0);
  23. void dump_selector(StringBuilder&, CSS::Selector const&);
  24. void dump_selector(CSS::Selector const&);
  25. }