LibWeb: Move Declaration and DeclarationOrAtRule into Parser namespace

This commit is contained in:
Sam Atkins 2022-04-12 14:51:19 +01:00 committed by Andreas Kling
parent 5f316cffba
commit add6babef4
Notes: sideshowbarker 2024-07-17 11:52:19 +09:00
5 changed files with 10 additions and 8 deletions

View file

@ -8,7 +8,7 @@
#include <LibWeb/CSS/Parser/Declaration.h>
#include <LibWeb/CSS/Serialize.h>
namespace Web::CSS {
namespace Web::CSS::Parser {
Declaration::Declaration() = default;
Declaration::~Declaration() = default;

View file

@ -11,24 +11,24 @@
#include <LibWeb/CSS/CSSStyleDeclaration.h>
#include <LibWeb/CSS/Parser/ComponentValue.h>
namespace Web::CSS {
namespace Web::CSS::Parser {
class Declaration {
friend class Parser::Parser;
friend class Parser;
public:
Declaration();
~Declaration();
String const& name() const { return m_name; }
Vector<Parser::ComponentValue> const& values() const { return m_values; }
Vector<ComponentValue> const& values() const { return m_values; }
Important importance() const { return m_important; }
String to_string() const;
private:
String m_name;
Vector<Parser::ComponentValue> m_values;
Vector<ComponentValue> m_values;
Important m_important { Important::No };
};

View file

@ -7,7 +7,7 @@
#include <LibWeb/CSS/Parser/DeclarationOrAtRule.h>
namespace Web::CSS {
namespace Web::CSS::Parser {
DeclarationOrAtRule::DeclarationOrAtRule(RefPtr<StyleRule> at)
: m_type(DeclarationType::At)

View file

@ -9,10 +9,10 @@
#include <LibWeb/CSS/Parser/Declaration.h>
#include <LibWeb/CSS/Parser/StyleRule.h>
namespace Web::CSS {
namespace Web::CSS::Parser {
class DeclarationOrAtRule {
friend class Parser::Parser;
friend class Parser;
public:
explicit DeclarationOrAtRule(RefPtr<StyleRule> at);

View file

@ -101,6 +101,8 @@ enum class ValueID;
namespace Web::CSS::Parser {
class Block;
class ComponentValue;
class Declaration;
class DeclarationOrAtRule;
class Function;
class Parser;
}