mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-13 03:06:10 +00:00
Each layout node is now constructed with an owning back-pointer to the style tree node that originated it.
17 lines
323 B
C++
17 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();
|
|
}
|