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:
parent
5f316cffba
commit
add6babef4
5 changed files with 10 additions and 8 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue