ButtonBox.h 652 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/HTMLInputElement.h>
  8. #include <LibWeb/Layout/FormAssociatedLabelableNode.h>
  9. namespace Web::Layout {
  10. class ButtonBox final : public FormAssociatedLabelableNode {
  11. JS_CELL(ButtonBox, FormAssociatedLabelableNode);
  12. public:
  13. ButtonBox(DOM::Document&, HTML::HTMLInputElement&, NonnullRefPtr<CSS::StyleProperties>);
  14. virtual ~ButtonBox() override;
  15. virtual void prepare_for_replaced_layout() override;
  16. private:
  17. virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
  18. };
  19. }