mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:52:45 +00:00 
			
		
		
		
	 ec5d5918c4
			
		
	
	
		ec5d5918c4
		
	
	
	
	
		
			
			...instead of defaulting to a PaintableBox. This way it gets the same behavior as other SVG boxes during paint.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			601 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			601 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/Layout/SVGGraphicsBox.h>
 | |
| #include <LibWeb/Painting/SVGGraphicsPaintable.h>
 | |
| #include <LibWeb/Painting/StackingContext.h>
 | |
| 
 | |
| namespace Web::Layout {
 | |
| 
 | |
| SVGGraphicsBox::SVGGraphicsBox(DOM::Document& document, SVG::SVGGraphicsElement& element, NonnullRefPtr<CSS::StyleProperties> properties)
 | |
|     : SVGBox(document, element, properties)
 | |
| {
 | |
| }
 | |
| 
 | |
| JS::GCPtr<Painting::Paintable> SVGGraphicsBox::create_paintable() const
 | |
| {
 | |
|     return Painting::SVGGraphicsPaintable::create(*this);
 | |
| }
 | |
| 
 | |
| }
 |