mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +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:
parent
d14b60533f
commit
f7cd5662ef
6 changed files with 70 additions and 39 deletions
13
Libraries/LibHTML/Layout/LayoutTreeBuilder.h
Normal file
13
Libraries/LibHTML/Layout/LayoutTreeBuilder.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/RefPtr.h>
|
||||
|
||||
class Node;
|
||||
class LayoutNode;
|
||||
|
||||
class LayoutTreeBuilder {
|
||||
public:
|
||||
LayoutTreeBuilder();
|
||||
|
||||
RefPtr<LayoutNode> build(Node&);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue