1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

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
5 changed files with 10 additions and 8 deletions

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 };
};