2020-01-18 11:38:21 +03:00
|
|
|
/*
|
2021-02-17 17:59:13 +03:00
|
|
|
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
2021-02-21 14:45:26 +03:00
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
2020-01-18 11:38:21 +03:00
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 11:38:21 +03:00
|
|
|
*/
|
|
|
|
|
2019-06-15 19:55:47 +03:00
|
|
|
#pragma once
|
|
|
|
|
2020-12-09 00:11:02 +03:00
|
|
|
#include <AK/Forward.h>
|
2020-03-29 23:24:23 +03:00
|
|
|
#include <LibWeb/Forward.h>
|
2020-03-07 12:27:02 +03:00
|
|
|
|
2020-03-29 23:24:23 +03:00
|
|
|
namespace Web {
|
2019-06-15 19:55:47 +03:00
|
|
|
|
2021-07-12 16:13:29 +03:00
|
|
|
void dump_tree(StringBuilder&, DOM::Node const&);
|
|
|
|
void dump_tree(DOM::Node const&);
|
|
|
|
void dump_tree(StringBuilder&, Layout::Node const&, bool show_box_model = false, bool show_specified_style = false, bool colorize = false);
|
|
|
|
void dump_tree(Layout::Node const&, bool show_box_model = false, bool show_specified_style = false);
|
|
|
|
void dump_sheet(StringBuilder&, CSS::StyleSheet const&);
|
|
|
|
void dump_sheet(CSS::StyleSheet const&);
|
2021-09-29 14:48:04 +03:00
|
|
|
void dump_rule(StringBuilder&, CSS::CSSRule const&, int indent_levels = 0);
|
2021-07-12 16:13:29 +03:00
|
|
|
void dump_rule(CSS::CSSRule const&);
|
2021-09-29 14:48:04 +03:00
|
|
|
void dump_style_rule(StringBuilder&, CSS::CSSStyleRule const&, int indent_levels = 0);
|
|
|
|
void dump_import_rule(StringBuilder&, CSS::CSSImportRule const&, int indent_levels = 0);
|
|
|
|
void dump_media_rule(StringBuilder&, CSS::CSSMediaRule const&, int indent_levels = 0);
|
2021-07-12 16:13:29 +03:00
|
|
|
void dump_selector(StringBuilder&, CSS::Selector const&);
|
|
|
|
void dump_selector(CSS::Selector const&);
|
2019-09-25 12:42:10 +03:00
|
|
|
|
2020-03-07 12:27:02 +03:00
|
|
|
}
|