1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +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:
Andreas Kling 2019-07-03 07:19:29 +02:00
parent e9ab282cfd
commit c7cf6f00fc
11 changed files with 21 additions and 17 deletions

View file

@ -1,8 +1,8 @@
#include <LibHTML/Layout/LayoutText.h>
#include <ctype.h>
LayoutText::LayoutText(const Text& text)
: LayoutNode(&text)
LayoutText::LayoutText(const Text& text, const StyledNode& styled_node)
: LayoutNode(&text, styled_node)
{
}