mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
We now create a layout tree directly from the DOM tree. This way we don't actually lose text nodes ^)
17 lines
340 B
C++
17 lines
340 B
C++
#include <LibHTML/Layout/LayoutDocument.h>
|
|
|
|
LayoutDocument::LayoutDocument(const Document& document, StyleProperties&& style_properties)
|
|
: LayoutBlock(&document, move(style_properties))
|
|
{
|
|
}
|
|
|
|
LayoutDocument::~LayoutDocument()
|
|
{
|
|
}
|
|
|
|
void LayoutDocument::layout()
|
|
{
|
|
rect().set_width(style().size().width());
|
|
LayoutNode::layout();
|
|
}
|