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