mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-24 17:09:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			605 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			605 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2024, MacDue <macdue@dueutil.tech>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/Layout/SVGMaskBox.h>
 | |
| #include <LibWeb/Painting/SVGMaskPaintable.h>
 | |
| #include <LibWeb/Painting/StackingContext.h>
 | |
| 
 | |
| namespace Web::Layout {
 | |
| 
 | |
| JS_DEFINE_ALLOCATOR(SVGMaskBox);
 | |
| 
 | |
| SVGMaskBox::SVGMaskBox(DOM::Document& document, SVG::SVGMaskElement& element, NonnullRefPtr<CSS::StyleProperties> properties)
 | |
|     : SVGGraphicsBox(document, element, properties)
 | |
| {
 | |
| }
 | |
| 
 | |
| JS::GCPtr<Painting::Paintable> SVGMaskBox::create_paintable() const
 | |
| {
 | |
|     return Painting::SVGMaskPaintable::create(*this);
 | |
| }
 | |
| 
 | |
| }
 |