mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
LibHTML: Let the layout tree own the style tree.
Each layout node is now constructed with an owning back-pointer to the style tree node that originated it.
This commit is contained in:
parent
e9ab282cfd
commit
c7cf6f00fc
11 changed files with 21 additions and 17 deletions
|
@ -1,8 +1,10 @@
|
|||
#include <LibHTML/Layout/LayoutBlock.h>
|
||||
#include <LibHTML/Layout/LayoutNode.h>
|
||||
#include <LibHTML/CSS/StyledNode.h>
|
||||
|
||||
LayoutNode::LayoutNode(const Node* node)
|
||||
LayoutNode::LayoutNode(const Node* node, const StyledNode& styled_node)
|
||||
: m_node(node)
|
||||
, m_styled_node(styled_node)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue