1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

LibHTML: Move layout tree building to a LayoutTreeBuilder class

Building a whole layout tree shouldn't be a concern of Node, so this
patch moves it to a separate class.
This commit is contained in:
Andreas Kling 2019-10-15 12:22:41 +02:00
parent d14b60533f
commit f7cd5662ef
6 changed files with 70 additions and 39 deletions

View file

@ -38,7 +38,6 @@ public:
bool is_parent_node() const { return is_element() || is_document(); }
virtual RefPtr<LayoutNode> create_layout_node(const StyleResolver&, const StyleProperties* parent_style) const;
RefPtr<LayoutNode> create_layout_tree(const StyleResolver&, const StyleProperties* parent_style) const;
virtual String tag_name() const = 0;