mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	There are a handful of FIXME's here, but this seems generally good. Note that CSS *values* don't get serialized in a spec-compliant way since we currently rely on StyleValue::to_string() which is ad-hoc.
		
			
				
	
	
		
			39 lines
		
	
	
	
		
			745 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
	
		
			745 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#include <LibWeb/CSS/CSSGroupingRule.h>
 | 
						|
#include <LibWeb/CSS/CSSRuleList.h>
 | 
						|
 | 
						|
namespace Web::CSS {
 | 
						|
 | 
						|
CSSGroupingRule::CSSGroupingRule(NonnullRefPtrVector<CSSRule>&& rules)
 | 
						|
    : m_rules(CSSRuleList::create(move(rules)))
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
CSSGroupingRule::~CSSGroupingRule()
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
size_t CSSGroupingRule::insert_rule(StringView const&, size_t)
 | 
						|
{
 | 
						|
    // https://www.w3.org/TR/cssom-1/#insert-a-css-rule
 | 
						|
    TODO();
 | 
						|
}
 | 
						|
 | 
						|
void CSSGroupingRule::delete_rule(size_t)
 | 
						|
{
 | 
						|
    // https://www.w3.org/TR/cssom-1/#remove-a-css-rule
 | 
						|
    TODO();
 | 
						|
}
 | 
						|
 | 
						|
// https://drafts.csswg.org/cssom/#serialize-a-css-rule
 | 
						|
String CSSGroupingRule::serialized() const
 | 
						|
{
 | 
						|
    TODO();
 | 
						|
}
 | 
						|
 | 
						|
}
 |