mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 21:45:10 +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.
28 lines
360 B
C++
28 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()
|
|
{
|
|
}
|