2020-01-18 11:38:21 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 11:38:21 +03:00
|
|
|
*/
|
|
|
|
|
2019-10-18 00:09:41 +03:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-06 21:02:41 +03:00
|
|
|
#include <LibWeb/Layout/BlockContainer.h>
|
2019-10-18 00:09:41 +03:00
|
|
|
|
2020-11-22 17:53:01 +03:00
|
|
|
namespace Web::Layout {
|
2020-03-07 12:27:02 +03:00
|
|
|
|
2021-10-06 21:02:41 +03:00
|
|
|
class TableCellBox final : public BlockContainer {
|
2019-10-18 00:09:41 +03:00
|
|
|
public:
|
2021-01-07 18:37:51 +03:00
|
|
|
TableCellBox(DOM::Document&, DOM::Element*, NonnullRefPtr<CSS::StyleProperties>);
|
|
|
|
TableCellBox(DOM::Document&, DOM::Element*, CSS::ComputedValues);
|
2020-11-22 17:53:01 +03:00
|
|
|
virtual ~TableCellBox() override;
|
2019-10-18 00:09:41 +03:00
|
|
|
|
2020-11-22 17:53:01 +03:00
|
|
|
TableCellBox* next_cell() { return next_sibling_of_type<TableCellBox>(); }
|
|
|
|
const TableCellBox* next_cell() const { return next_sibling_of_type<TableCellBox>(); }
|
2019-10-18 10:36:46 +03:00
|
|
|
|
2020-06-13 01:10:52 +03:00
|
|
|
size_t colspan() const;
|
|
|
|
|
2021-10-06 18:57:44 +03:00
|
|
|
static CSS::Display static_display() { return CSS::Display { CSS::Display::Internal::TableCell }; }
|
2019-10-18 00:09:41 +03:00
|
|
|
};
|
2019-10-18 00:34:12 +03:00
|
|
|
|
|
|
|
}
|