2020-09-12 17:56:11 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-09-12 17:56:11 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/HTML/HTMLInputElement.h>
|
2022-03-14 23:05:55 +00:00
|
|
|
#include <LibWeb/Layout/FormAssociatedLabelableNode.h>
|
2020-09-12 17:56:11 +02:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
namespace Web::Layout {
|
2020-09-12 17:56:11 +02:00
|
|
|
|
2022-03-14 23:05:55 +00:00
|
|
|
class ButtonBox : public FormAssociatedLabelableNode {
|
2020-09-12 17:56:11 +02:00
|
|
|
public:
|
2020-11-22 15:53:01 +01:00
|
|
|
ButtonBox(DOM::Document&, HTML::HTMLInputElement&, NonnullRefPtr<CSS::StyleProperties>);
|
|
|
|
|
virtual ~ButtonBox() override;
|
2020-09-12 17:56:11 +02:00
|
|
|
|
2020-11-22 13:38:18 +01:00
|
|
|
virtual void prepare_for_replaced_layout() override;
|
2020-09-12 17:56:11 +02:00
|
|
|
|
|
|
|
|
private:
|
2022-03-10 22:46:35 +01:00
|
|
|
virtual RefPtr<Painting::Paintable> create_paintable() const override;
|
2020-09-12 17:56:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|