mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:32:44 +00:00 
			
		
		
		
	 9e22f01eba
			
		
	
	
		9e22f01eba
		
	
	
	
	
		
			
			Just enough that we stop creating layout nodes for mask elements, which was making some SVG content look very wrong. :^)
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			766 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			766 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/Bindings/SVGMaskElementPrototype.h>
 | |
| #include <LibWeb/DOM/Document.h>
 | |
| #include <LibWeb/SVG/SVGMaskElement.h>
 | |
| 
 | |
| namespace Web::SVG {
 | |
| 
 | |
| SVGMaskElement::SVGMaskElement(DOM::Document& document, DOM::QualifiedName tag_name)
 | |
|     : SVGGraphicsElement(document, move(tag_name))
 | |
| {
 | |
| }
 | |
| 
 | |
| SVGMaskElement::~SVGMaskElement() = default;
 | |
| 
 | |
| void SVGMaskElement::initialize(JS::Realm& realm)
 | |
| {
 | |
|     Base::initialize(realm);
 | |
|     set_prototype(&Bindings::ensure_web_prototype<Bindings::SVGMaskElementPrototype>(realm, "SVGMaskElement"));
 | |
| }
 | |
| 
 | |
| JS::GCPtr<Layout::Node> SVGMaskElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties>)
 | |
| {
 | |
|     return nullptr;
 | |
| }
 | |
| 
 | |
| }
 |