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.
29 lines
404 B
C++
29 lines
404 B
C++
#include <LibHTML/DOM/Element.h>
|
|
#include <LibHTML/Layout/LayoutBlock.h>
|
|
|
|
LayoutBlock::LayoutBlock(const Node& node, const StyledNode& styled_node)
|
|
: LayoutNode(&node, styled_node)
|
|
{
|
|
}
|
|
|
|
LayoutBlock::~LayoutBlock()
|
|
{
|
|
}
|
|
|
|
void LayoutBlock::layout()
|
|
{
|
|
compute_width();
|
|
|
|
LayoutNode::layout();
|
|
|
|
compute_height();
|
|
}
|
|
|
|
void LayoutBlock::compute_width()
|
|
{
|
|
}
|
|
|
|
void LayoutBlock::compute_height()
|
|
{
|
|
}
|