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:
parent
f690259a42
commit
06cd418770
5 changed files with 28 additions and 26 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue