LayoutBreak.h 498 B

12345678910111213141516
  1. #pragma once
  2. #include <LibHTML/DOM/HTMLBRElement.h>
  3. #include <LibHTML/Layout/LayoutNode.h>
  4. class LayoutBreak final : public LayoutNodeWithStyleAndBoxModelMetrics {
  5. public:
  6. explicit LayoutBreak(const HTMLBRElement&);
  7. virtual ~LayoutBreak() override;
  8. const HTMLBRElement& node() const { return to<HTMLBRElement>(*LayoutNode::node()); }
  9. private:
  10. virtual const char* class_name() const override { return "LayoutBreak"; }
  11. virtual void split_into_lines(LayoutBlock&) override;
  12. };