2019-10-12 08:47:49 -03:00
|
|
|
#include <LibHTML/Layout/LayoutBlock.h>
|
|
|
|
|
#include <LibHTML/Layout/LayoutBreak.h>
|
|
|
|
|
|
|
|
|
|
LayoutBreak::LayoutBreak(const HTMLBRElement& element)
|
2019-10-15 11:48:38 -03:00
|
|
|
: LayoutNodeWithStyleAndBoxModelMetrics(&element, StyleProperties::create())
|
2019-10-12 08:47:49 -03:00
|
|
|
{
|
|
|
|
|
set_inline(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LayoutBreak::~LayoutBreak()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void LayoutBreak::split_into_lines(LayoutBlock& block)
|
|
|
|
|
{
|
2019-10-13 12:26:48 -03:00
|
|
|
block.add_line_box();
|
2019-10-12 08:47:49 -03:00
|
|
|
}
|