Serenity Operating System
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/HTMLInputElement.h>
10#include <LibWeb/Layout/FormAssociatedLabelableNode.h>
11
12namespace Web::Layout {
13
14class ButtonBox final : public FormAssociatedLabelableNode {
15 JS_CELL(ButtonBox, FormAssociatedLabelableNode);
16
17public:
18 ButtonBox(DOM::Document&, HTML::HTMLInputElement&, NonnullRefPtr<CSS::StyleProperties>);
19 virtual ~ButtonBox() override;
20
21 virtual void prepare_for_replaced_layout() override;
22
23private:
24 virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
25};
26
27}