mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Move Declaration and DeclarationOrAtRule into Parser namespace
This commit is contained in:
parent
5f316cffba
commit
add6babef4
Notes:
sideshowbarker
2024-07-17 11:52:19 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/add6babef4 Pull-request: https://github.com/SerenityOS/serenity/pull/13643
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);
|
||||
|
|
|
@ -101,6 +101,8 @@ enum class ValueID;
|
|||
namespace Web::CSS::Parser {
|
||||
class Block;
|
||||
class ComponentValue;
|
||||
class Declaration;
|
||||
class DeclarationOrAtRule;
|
||||
class Function;
|
||||
class Parser;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue