mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:02:45 +00:00 
			
		
		
		
	 e8d10fb429
			
		
	
	
		e8d10fb429
		
	
	
	
	
		
			
			An svg layout element without a `SVGSVGElement` ancestor caused a failed assertion before, because the svg context does not exist when `paint()` is called
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			425 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			425 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/DOM/Element.h>
 | |
| 
 | |
| namespace Web::SVG {
 | |
| 
 | |
| class SVGElement : public DOM::Element {
 | |
| public:
 | |
|     using WrapperType = Bindings::SVGElementWrapper;
 | |
| 
 | |
|     virtual bool requires_svg_container() const override { return true; }
 | |
| 
 | |
| protected:
 | |
|     SVGElement(DOM::Document&, QualifiedName);
 | |
| };
 | |
| 
 | |
| }
 |