| 
									
										
										
										
											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: | 
					
						
							| 
									
										
										
										
											2022-03-23 18:55:54 -04:00
										 |  |  |     const HTML::FormAssociatedElement& dom_node() const { return dynamic_cast<const HTML::FormAssociatedElement&>(LabelableNode::dom_node()); } | 
					
						
							|  |  |  |     HTML::FormAssociatedElement& dom_node() { return dynamic_cast<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; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |