Serenity Operating System
at master 27 lines 668 B view raw
1/* 2 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <LibWeb/Layout/BlockContainer.h> 10 11namespace Web::Layout { 12 13class TableCellBox final : public BlockContainer { 14 JS_CELL(TableCellBox, BlockContainer); 15 16public: 17 TableCellBox(DOM::Document&, DOM::Element*, NonnullRefPtr<CSS::StyleProperties>); 18 TableCellBox(DOM::Document&, DOM::Element*, CSS::ComputedValues); 19 virtual ~TableCellBox() override; 20 21 size_t colspan() const; 22 size_t rowspan() const; 23 24 static CSS::Display static_display(bool) { return CSS::Display { CSS::Display::Internal::TableCell }; } 25}; 26 27}