Serenity Operating System
at master 34 lines 788 B view raw
1/* 2 * Copyright (c) 2020, Andreas Kling <kling@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <LibWeb/HTML/HTMLElement.h> 10 11namespace Web::HTML { 12 13class HTMLTableCellElement final : public HTMLElement { 14 WEB_PLATFORM_OBJECT(HTMLTableCellElement, HTMLElement); 15 16public: 17 virtual ~HTMLTableCellElement() override; 18 19 unsigned col_span() const; 20 unsigned row_span() const; 21 22 void set_col_span(unsigned); 23 void set_row_span(unsigned); 24 25 virtual Optional<ARIA::Role> default_role() const override; 26 27private: 28 HTMLTableCellElement(DOM::Document&, DOM::QualifiedName); 29 30 virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override; 31 virtual void apply_presentational_hints(CSS::StyleProperties&) const override; 32}; 33 34}