mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:28:11 +00:00
LibWeb: Move Declaration and DeclarationOrAtRule into Parser namespace
This commit is contained in:
parent
5f316cffba
commit
add6babef4
5 changed files with 10 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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 };
|
||||
};
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue