
We now create a layout tree directly from the DOM tree. This way we don't actually lose text nodes ^)
16 lines
340 B
C++
16 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();
|
|
}
|