2022-04-12 14:31:49 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020-2021, the SerenityOS developers.
|
2023-02-15 11:28:44 +00:00
|
|
|
* Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
|
2022-04-12 14:31:49 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/CSS/Parser/DeclarationOrAtRule.h>
|
2022-09-14 10:39:32 +02:00
|
|
|
#include <LibWeb/CSS/Parser/Function.h>
|
2022-04-12 14:31:49 +01:00
|
|
|
|
2022-04-12 14:51:19 +01:00
|
|
|
namespace Web::CSS::Parser {
|
2022-04-12 14:31:49 +01:00
|
|
|
|
2022-04-12 19:05:13 +01:00
|
|
|
DeclarationOrAtRule::DeclarationOrAtRule(RefPtr<Rule> at)
|
2022-04-12 14:31:49 +01:00
|
|
|
: m_type(DeclarationType::At)
|
|
|
|
, m_at(move(at))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
DeclarationOrAtRule::DeclarationOrAtRule(Declaration declaration)
|
|
|
|
: m_type(DeclarationType::Declaration)
|
|
|
|
, m_declaration(move(declaration))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
DeclarationOrAtRule::~DeclarationOrAtRule() = default;
|
|
|
|
|
|
|
|
}
|