
Layout is initiated from Frame::layout(). It makes the document's layout node as wide as the frame, and then we'll take it from there.
16 lines
279 B
C++
16 lines
279 B
C++
#include <LibHTML/Layout/LayoutDocument.h>
|
|
|
|
LayoutDocument::LayoutDocument(const Document& document)
|
|
: LayoutNode(&document)
|
|
{
|
|
}
|
|
|
|
LayoutDocument::~LayoutDocument()
|
|
{
|
|
}
|
|
|
|
void LayoutDocument::layout()
|
|
{
|
|
rect().set_width(style().size().width());
|
|
LayoutNode::layout();
|
|
}
|