2022-03-14 23:05:55 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, sin-ack <sin-ack@protonmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/Forward.h>
|
|
|
|
#include <LibWeb/HTML/FormAssociatedElement.h>
|
2022-03-23 18:55:54 -04:00
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
2022-03-14 23:05:55 +00:00
|
|
|
#include <LibWeb/Layout/LabelableNode.h>
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
|
|
|
class FormAssociatedLabelableNode : public LabelableNode {
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_CELL(FormAssociatedLabelableNode, LabelableNode);
|
2022-10-17 14:41:50 +02:00
|
|
|
|
2022-03-14 23:05:55 +00:00
|
|
|
public:
|
2025-08-22 11:59:47 +01:00
|
|
|
HTML::FormAssociatedElement const& dom_node() const { return as<HTML::FormAssociatedElement>(LabelableNode::dom_node()); }
|
|
|
|
HTML::FormAssociatedElement& dom_node() { return as<HTML::FormAssociatedElement>(LabelableNode::dom_node()); }
|
2022-03-14 23:05:55 +00:00
|
|
|
|
|
|
|
protected:
|
2024-12-20 16:35:12 +01:00
|
|
|
FormAssociatedLabelableNode(DOM::Document& document, HTML::FormAssociatedElement& element, GC::Ref<CSS::ComputedProperties> style)
|
2022-03-23 18:55:54 -04:00
|
|
|
: LabelableNode(document, element.form_associated_element_to_html_element(), move(style))
|
2022-03-14 23:05:55 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ~FormAssociatedLabelableNode() = default;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|