summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Layout/LayoutTableCell.h
blob: 3334f31cda97fec8725f4cb00f63efc806958569 (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/LayoutBlock.h>

class LayoutTableCell final : public LayoutBlock {
public:
    LayoutTableCell(const Element&, NonnullRefPtr<StyleProperties>);
    virtual ~LayoutTableCell() override;

private:
    virtual bool is_table_cell() const override { return true; }
    virtual const char* class_name() const override { return "LayoutTableCell"; }
};

template<>
inline bool is<LayoutTableCell>(const LayoutNode& node)
{
    return node.is_table_cell();
}