mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	
		
			
	
	
		
			22 lines
		
	
	
	
		
			433 B
		
	
	
	
		
			C++
		
	
	
	
	
	
		
		
			
		
	
	
			22 lines
		
	
	
	
		
			433 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
								 | 
							
								/*
							 | 
						||
| 
								 | 
							
								 * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 | 
							
								 * SPDX-License-Identifier: BSD-2-Clause
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include <LibWeb/DOM/Element.h>
							 | 
						||
| 
								 | 
							
								#include <LibWeb/DOM/Slot.h>
							 | 
						||
| 
								 | 
							
								#include <LibWeb/DOM/Text.h>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace Web::DOM {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Slot::~Slot() = default;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								void Slot::visit_edges(JS::Cell::Visitor& visitor)
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    for (auto const& node : m_assigned_nodes)
							 | 
						||
| 
								 | 
							
								        node.visit([&](auto const& slottable) { visitor.visit(slottable); });
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								}
							 |