| 
									
										
										
										
											2024-11-05 08:07:13 +00:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2024, Kostya Farber <kostya.farber@gmail.com> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <LibWeb/Layout/BlockContainer.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Web::Layout { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class LegendBox final : public BlockContainer { | 
					
						
							| 
									
										
										
										
											2024-11-19 14:47:18 +01:00
										 |  |  |     GC_CELL(LegendBox, BlockContainer); | 
					
						
							|  |  |  |     GC_DECLARE_ALLOCATOR(LegendBox); | 
					
						
							| 
									
										
										
										
											2024-11-05 08:07:13 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2024-12-20 16:35:12 +01:00
										 |  |  |     LegendBox(DOM::Document&, DOM::Element&, GC::Ref<CSS::ComputedProperties>); | 
					
						
							| 
									
										
										
										
											2024-11-05 08:07:13 +00:00
										 |  |  |     virtual ~LegendBox() override; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     DOM::Element& dom_node() { return static_cast<DOM::Element&>(*Box::dom_node()); } | 
					
						
							|  |  |  |     DOM::Element const& dom_node() const { return static_cast<DOM::Element const&>(*Box::dom_node()); } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |     virtual bool is_legend_box() const final | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return true; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | template<> | 
					
						
							|  |  |  | inline bool Node::fast_is<LegendBox>() const { return is_legend_box(); } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |