ladybird/LibHTML/Dump.h
Andreas Kling ffcbe8f0de LibHTML: Start building the style tree.
Walk the DOM and construct a parallel style tree that points back to the DOM
and has the relevant CSS property values hanging off of them.

The values are picked based on naive selector matching. There's no cascade
or specificity taken into account yet.
2019-06-28 21:25:44 +02:00

13 lines
267 B
C++

#pragma once
class Node;
class LayoutNode;
class StyleRule;
class StyleSheet;
class StyledNode;
void dump_tree(const Node&);
void dump_tree(const StyledNode&);
void dump_tree(const LayoutNode&);
void dump_sheet(const StyleSheet&);
void dump_rule(const StyleRule&);