/src/serenity/Userland/Libraries/LibWeb/HTML/HTMLPreElement.h
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2020, the SerenityOS developers. |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #pragma once |
8 | | |
9 | | #include <LibWeb/ARIA/Roles.h> |
10 | | #include <LibWeb/HTML/HTMLElement.h> |
11 | | #include <LibWeb/WebIDL/Types.h> |
12 | | |
13 | | namespace Web::HTML { |
14 | | |
15 | | class HTMLPreElement final : public HTMLElement { |
16 | | WEB_PLATFORM_OBJECT(HTMLPreElement, HTMLElement); |
17 | | JS_DECLARE_ALLOCATOR(HTMLPreElement); |
18 | | |
19 | | public: |
20 | | virtual ~HTMLPreElement() override; |
21 | | |
22 | | // https://www.w3.org/TR/html-aria/#el-pre |
23 | 0 | virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::generic; } |
24 | | |
25 | | private: |
26 | | HTMLPreElement(DOM::Document&, DOM::QualifiedName); |
27 | | |
28 | | virtual void initialize(JS::Realm&) override; |
29 | | virtual void apply_presentational_hints(CSS::StyleProperties&) const override; |
30 | | }; |
31 | | |
32 | | } |