| 
									
										
										
										
											2024-03-27 00:13:16 +00:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2024, MacDue <macdue@dueutil.tech> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <LibWeb/Layout/SVGBox.h>
 | 
					
						
							|  |  |  | #include <LibWeb/SVG/SVGClipPathElement.h>
 | 
					
						
							|  |  |  | #include <LibWeb/SVG/SVGElement.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Web::Layout { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class SVGClipBox : public SVGBox { | 
					
						
							| 
									
										
										
										
											2024-11-15 04:01:23 +13:00
										 |  |  |     GC_CELL(SVGClipBox, SVGBox); | 
					
						
							|  |  |  |     GC_DECLARE_ALLOCATOR(SVGClipBox); | 
					
						
							| 
									
										
										
										
											2024-03-27 00:13:16 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2024-12-20 11:32:17 +01:00
										 |  |  |     SVGClipBox(DOM::Document&, SVG::SVGClipPathElement&, CSS::ComputedProperties); | 
					
						
							| 
									
										
										
										
											2024-03-27 00:13:16 +00:00
										 |  |  |     virtual ~SVGClipBox() override = default; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     SVG::SVGClipPathElement& dom_node() { return verify_cast<SVG::SVGClipPathElement>(SVGBox::dom_node()); } | 
					
						
							|  |  |  |     SVG::SVGClipPathElement const& dom_node() const { return verify_cast<SVG::SVGClipPathElement>(SVGBox::dom_node()); } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-15 04:01:23 +13:00
										 |  |  |     virtual GC::Ptr<Painting::Paintable> create_paintable() const override; | 
					
						
							| 
									
										
										
										
											2024-03-27 00:13:16 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |