mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 02:42:44 +00:00 
			
		
		
		
	 776b1f4548
			
		
	
	
		776b1f4548
		
	
	
	
	
		
			
			The end goal is to make the PseudoClass::not_selector be a Selector instead of a String that is repeatedly re-parsed. But since Selector contains a Vector of ComplexSelectors, which each have a Vector of SimpleSelectors, it's probably a good idea to not be passing them around by value anyway. :^)
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			413 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			413 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/CSS/CSSStyleRule.h>
 | |
| 
 | |
| namespace Web::CSS {
 | |
| 
 | |
| CSSStyleRule::CSSStyleRule(NonnullRefPtrVector<Selector>&& selectors, NonnullRefPtr<CSSStyleDeclaration>&& declaration)
 | |
|     : m_selectors(move(selectors))
 | |
|     , m_declaration(move(declaration))
 | |
| {
 | |
| }
 | |
| 
 | |
| CSSStyleRule::~CSSStyleRule()
 | |
| {
 | |
| }
 | |
| 
 | |
| }
 |