mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibWeb: Move StyleRule to Parser namespace
This commit is contained in:
parent
add6babef4
commit
7272997b1b
3 changed files with 8 additions and 7 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <LibWeb/CSS/Parser/StyleRule.h>
|
||||
#include <LibWeb/CSS/Serialize.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
StyleRule::StyleRule(StyleRule::Type type)
|
||||
: m_type(type)
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
#include <LibWeb/CSS/Parser/Block.h>
|
||||
#include <LibWeb/CSS/Parser/ComponentValue.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
class StyleRule : public RefCounted<StyleRule> {
|
||||
friend class Parser::Parser;
|
||||
friend class Parser;
|
||||
|
||||
public:
|
||||
enum class Type {
|
||||
|
@ -29,8 +29,8 @@ public:
|
|||
bool is_qualified_rule() const { return m_type == Type::Qualified; }
|
||||
bool is_at_rule() const { return m_type == Type::At; }
|
||||
|
||||
Vector<Parser::ComponentValue> const& prelude() const { return m_prelude; }
|
||||
RefPtr<Parser::Block const> block() const { return m_block; }
|
||||
Vector<ComponentValue> const& prelude() const { return m_prelude; }
|
||||
RefPtr<Block const> block() const { return m_block; }
|
||||
String const& at_rule_name() const { return m_at_rule_name; }
|
||||
|
||||
String to_string() const;
|
||||
|
@ -38,8 +38,8 @@ public:
|
|||
private:
|
||||
Type const m_type;
|
||||
String m_at_rule_name;
|
||||
Vector<Parser::ComponentValue> m_prelude;
|
||||
RefPtr<Parser::Block> m_block;
|
||||
Vector<ComponentValue> m_prelude;
|
||||
RefPtr<Block> m_block;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -105,6 +105,7 @@ class Declaration;
|
|||
class DeclarationOrAtRule;
|
||||
class Function;
|
||||
class Parser;
|
||||
class StyleRule;
|
||||
}
|
||||
|
||||
namespace Web::DOM {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue