summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Layout/LayoutBreak.h
blob: 24b87436c23717403f77fa79100685ce9f6fc4c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <LibHTML/DOM/HTMLBRElement.h>
#include <LibHTML/Layout/LayoutNode.h>

class LayoutBreak final : public LayoutNodeWithStyleAndBoxModelMetrics {
public:
    explicit LayoutBreak(const HTMLBRElement&);
    virtual ~LayoutBreak() override;

    const HTMLBRElement& node() const { return to<HTMLBRElement>(*LayoutNode::node()); }

private:
    virtual const char* class_name() const override { return "LayoutBreak"; }
    virtual void split_into_lines(LayoutBlock&) override;
};