1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-02 08:18:10 +00:00
serenity/LibHTML/Layout/LayoutDocument.cpp
Andreas Kling c7cf6f00fc 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.
2019-07-03 07:19:29 +02:00

16 lines
323 B
C++

#include <LibHTML/Layout/LayoutDocument.h>
LayoutDocument::LayoutDocument(const Document& document, const StyledNode& styled_node)
: LayoutBlock(document, styled_node)
{
}
LayoutDocument::~LayoutDocument()
{
}
void LayoutDocument::layout()
{
rect().set_width(style().size().width());
LayoutNode::layout();
}