mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			440 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			440 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
 | 
						|
 * Copyright (c) 2021, the SerenityOS developers.
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#include <LibWeb/CSS/StyleSheet.h>
 | 
						|
#include <LibWeb/DOM/Element.h>
 | 
						|
 | 
						|
namespace Web::CSS {
 | 
						|
 | 
						|
void StyleSheet::set_owner_node(DOM::Element* element)
 | 
						|
{
 | 
						|
    if (element)
 | 
						|
        m_owner_node = element->make_weak_ptr<DOM::Element>();
 | 
						|
    else
 | 
						|
        m_owner_node = nullptr;
 | 
						|
}
 | 
						|
 | 
						|
}
 |