mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-11 02:54:55 +00:00
We need a way to represent values that are "auto", so adding a Length class seems like the easiest way to achieve that.
29 lines
360 B
C++
29 lines
360 B
C++
#include <LibHTML/DOM/Element.h>
|
|
#include <LibHTML/Layout/LayoutBlock.h>
|
|
|
|
LayoutBlock::LayoutBlock(const Node& node)
|
|
: LayoutNode(&node)
|
|
{
|
|
}
|
|
|
|
LayoutBlock::~LayoutBlock()
|
|
{
|
|
}
|
|
|
|
void LayoutBlock::layout()
|
|
{
|
|
compute_width();
|
|
|
|
LayoutNode::layout();
|
|
|
|
compute_height();
|
|
}
|
|
|
|
void LayoutBlock::compute_width()
|
|
{
|
|
}
|
|
|
|
void LayoutBlock::compute_height()
|
|
{
|
|
}
|