| 
									
										
										
										
											2023-05-31 00:50:12 +01:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2023, Preston Taylor <95388976+PrestonLTaylor@users.noreply.github.com> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <LibWeb/SVG/SVGGraphicsElement.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Web::SVG { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class SVGSymbolElement final : public SVGGraphicsElement { | 
					
						
							|  |  |  |     WEB_PLATFORM_OBJECT(SVGSymbolElement, SVGGraphicsElement); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     virtual ~SVGSymbolElement() override = default; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     void apply_presentational_hints(CSS::StyleProperties& style) const override; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-31 18:37:44 +02:00
										 |  |  |     Optional<ViewBox> view_box() const { return m_view_box; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-31 00:50:12 +01:00
										 |  |  | private: | 
					
						
							|  |  |  |     SVGSymbolElement(DOM::Document&, DOM::QualifiedName); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-07 08:41:28 +02:00
										 |  |  |     virtual void initialize(JS::Realm&) override; | 
					
						
							| 
									
										
										
										
											2023-05-31 00:50:12 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-19 19:42:31 +02:00
										 |  |  |     virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-31 00:50:12 +01:00
										 |  |  |     bool is_direct_child_of_use_shadow_tree() const; | 
					
						
							| 
									
										
										
										
											2023-07-31 18:37:44 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:00:58 +03:30
										 |  |  |     virtual void attribute_changed(FlyString const& name, Optional<DeprecatedString> const& value) override; | 
					
						
							| 
									
										
										
										
											2023-07-31 18:37:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     Optional<ViewBox> m_view_box; | 
					
						
							| 
									
										
										
										
											2023-05-31 00:50:12 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |