1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 21:45:10 +00:00
serenity/LibHTML/Layout/LayoutBlock.cpp
Andreas Kling 33ac0de988 LibHTML: Add Length and LengthBox classes.
We need a way to represent values that are "auto", so adding a Length class
seems like the easiest way to achieve that.
2019-07-01 17:17:32 +02:00

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()
{
}