LayoutBreak.cpp 362 B

1234567891011121314151617
  1. #include <LibHTML/Layout/LayoutBlock.h>
  2. #include <LibHTML/Layout/LayoutBreak.h>
  3. LayoutBreak::LayoutBreak(const HTMLBRElement& element)
  4. : LayoutNodeWithStyleAndBoxModelMetrics(&element, StyleProperties::create())
  5. {
  6. set_inline(true);
  7. }
  8. LayoutBreak::~LayoutBreak()
  9. {
  10. }
  11. void LayoutBreak::split_into_lines(LayoutBlock& block)
  12. {
  13. block.add_line_box();
  14. }