1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

LibWeb: Convert QualifiedStyleRule to a RefPtr type in new Parser

This commit is contained in:
Sam Atkins 2021-07-01 16:49:33 +01:00 committed by Andreas Kling
parent f690259a42
commit 06cd418770
5 changed files with 28 additions and 26 deletions

View file

@ -18,7 +18,7 @@ namespace Web::CSS {
AtStyleRule::AtStyleRule() { }
AtStyleRule::~AtStyleRule() { }
DeclarationOrAtRule::DeclarationOrAtRule(AtStyleRule at)
DeclarationOrAtRule::DeclarationOrAtRule(RefPtr<AtStyleRule> at)
: m_type(DeclarationType::At)
, m_at(move(at))
{
@ -94,7 +94,7 @@ String DeclarationOrAtRule::to_string() const
switch (m_type) {
default:
case DeclarationType::At:
builder.append(m_at.to_string());
builder.append(m_at->to_string());
break;
case DeclarationType::Declaration:
builder.append(m_declaration.to_string());