| 
									
										
										
										
											2023-12-17 18:35:21 +00:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2023, MacDue <macdue@dueutil.tech> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <LibWeb/SVG/SVGGeometryElement.h>
 | 
					
						
							|  |  |  | #include <LibWeb/SVG/SVGTextContentElement.h>
 | 
					
						
							| 
									
										
										
										
											2023-11-14 00:20:44 +00:00
										 |  |  | #include <LibWeb/SVG/SVGURIReference.h>
 | 
					
						
							| 
									
										
										
										
											2023-12-17 18:35:21 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace Web::SVG { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // https://svgwg.org/svg2-draft/text.html#TextPathElement
 | 
					
						
							| 
									
										
										
										
											2023-11-14 00:20:44 +00:00
										 |  |  | class SVGTextPathElement | 
					
						
							|  |  |  |     : public SVGTextContentElement | 
					
						
							|  |  |  |     , public SVGURIReferenceMixin<SupportsXLinkHref::Yes> { | 
					
						
							| 
									
										
										
										
											2023-12-17 18:35:21 +00:00
										 |  |  |     WEB_PLATFORM_OBJECT(SVGTextPathElement, SVGTextContentElement); | 
					
						
							| 
									
										
										
										
											2024-11-15 04:01:23 +13:00
										 |  |  |     GC_DECLARE_ALLOCATOR(SVGTextPathElement); | 
					
						
							| 
									
										
										
										
											2023-12-17 18:35:21 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2024-12-20 16:35:12 +01:00
										 |  |  |     virtual GC::Ptr<Layout::Node> create_layout_node(GC::Ref<CSS::ComputedProperties>) override; | 
					
						
							| 
									
										
										
										
											2023-12-17 18:35:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-15 04:01:23 +13:00
										 |  |  |     GC::Ptr<SVGGeometryElement const> path_or_shape() const; | 
					
						
							| 
									
										
										
										
											2023-12-17 18:35:21 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  |     SVGTextPathElement(DOM::Document&, DOM::QualifiedName); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     virtual void initialize(JS::Realm&) override; | 
					
						
							| 
									
										
										
										
											2023-11-14 00:20:44 +00:00
										 |  |  |     virtual void visit_edges(Cell::Visitor&) override; | 
					
						
							| 
									
										
										
										
											2023-12-17 18:35:21 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |