summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/TableWrapper.h
blob: de707bb7837d3697e6a146963fed4e1503e6d3e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/Layout/BlockContainer.h>

namespace Web::Layout {

class TableWrapper : public BlockContainer {
    JS_CELL(TableWrapper, BlockContainer);

public:
    TableWrapper(DOM::Document&, DOM::Node*, NonnullRefPtr<CSS::StyleProperties>);
    TableWrapper(DOM::Document&, DOM::Node*, CSS::ComputedValues);
    virtual ~TableWrapper() override;

private:
    virtual bool is_table_wrapper() const final { return true; }
};

template<>
inline bool Node::fast_is<TableWrapper>() const { return is_table_wrapper(); }

}