summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/Progress.h
blob: 0f26ae6142ec7279e9dcf5eae9da857656d9282a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2022, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/HTML/HTMLProgressElement.h>
#include <LibWeb/Layout/LabelableNode.h>

namespace Web::Layout {

class Progress : public LabelableNode {
public:
    Progress(DOM::Document&, HTML::HTMLProgressElement&, NonnullRefPtr<CSS::StyleProperties>);
    virtual ~Progress() override;

    const HTML::HTMLProgressElement& dom_node() const { return static_cast<const HTML::HTMLProgressElement&>(LabelableNode::dom_node()); }
    HTML::HTMLProgressElement& dom_node() { return static_cast<HTML::HTMLProgressElement&>(LabelableNode::dom_node()); }

    virtual RefPtr<Painting::Paintable> create_paintable() const override;
};

}