summaryrefslogtreecommitdiff
path: root/LibHTML/Layout/LayoutText.h
blob: 8169dd17c36f51b13e35326b8aa14a2b6a00cb2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

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

class LayoutText : public LayoutNode {
public:
    explicit LayoutText(const Text&);
    virtual ~LayoutText() override;

    const Text& node() const { return static_cast<const Text&>(*LayoutNode::node()); }

    const String& text() const;

    virtual const char* class_name() const override { return "LayoutText"; }
    virtual bool is_text() const final { return true; }

private:
};