Line | Count | Source (jump to first uncovered line) |
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 | #include <LibWeb/WebIDL/Types.h> | |
11 | ||
12 | namespace Web::HTML { | |
13 | ||
14 | class HTMLTableCellElement final : public HTMLElement { | |
15 | WEB_PLATFORM_OBJECT(HTMLTableCellElement, HTMLElement); | |
16 | JS_DECLARE_ALLOCATOR(HTMLTableCellElement); | |
17 | ||
18 | public: | |
19 | virtual ~HTMLTableCellElement() override; | |
20 | ||
21 | unsigned col_span() const; | |
22 | unsigned row_span() const; | |
23 | ||
24 | WebIDL::ExceptionOr<void> set_col_span(unsigned); | |
25 | WebIDL::ExceptionOr<void> set_row_span(unsigned); | |
26 | ||
27 | WebIDL::Long cell_index() const; | |
28 | ||
29 | virtual Optional<ARIA::Role> default_role() const override; | |
30 | ||
31 | private: | |
32 | HTMLTableCellElement(DOM::Document&, DOM::QualifiedName); | |
33 | ||
34 | 0 | virtual bool is_html_table_cell_element() const override { return true; } |
35 | ||
36 | virtual void initialize(JS::Realm&) override; | |
37 | virtual void apply_presentational_hints(CSS::StyleProperties&) const override; | |
38 | }; | |
39 | ||
40 | } | |
41 | ||
42 | namespace Web::DOM { | |
43 | template<> | |
44 | 0 | inline bool Node::fast_is<HTML::HTMLTableCellElement>() const { return is_html_table_cell_element(); } |
45 | } |