1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

LibWeb: Allow dumping layout tree into a StringBuilder

This commit is contained in:
Andreas Kling 2020-12-08 22:11:02 +01:00
parent eda9fb13cc
commit cf646badfa
2 changed files with 81 additions and 24 deletions

View file

@ -26,11 +26,13 @@
#pragma once
#include <AK/Forward.h>
#include <LibWeb/Forward.h>
namespace Web {
void dump_tree(const DOM::Node&);
void dump_tree(StringBuilder&, const Layout::Node&, bool show_box_model = false, bool show_specified_style = false, bool colorize = false);
void dump_tree(const Layout::Node&, bool show_box_model = false, bool show_specified_style = false);
void dump_sheet(const CSS::StyleSheet&);
void dump_rule(const CSS::StyleRule&);