18 lines
324 B
C++
18 lines
324 B
C++
|
|
#include <LibHTML/Layout/LayoutBlock.h>
|
||
|
|
#include <LibHTML/Layout/LayoutBreak.h>
|
||
|
|
|
||
|
|
LayoutBreak::LayoutBreak(const HTMLBRElement& element)
|
||
|
|
: LayoutNode(&element)
|
||
|
|
{
|
||
|
|
set_inline(true);
|
||
|
|
}
|
||
|
|
|
||
|
|
LayoutBreak::~LayoutBreak()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
void LayoutBreak::split_into_lines(LayoutBlock& block)
|
||
|
|
{
|
||
|
|
block.line_boxes().append(LineBox());
|
||
|
|
}
|