mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 18:45:07 +00:00
LibHTML: Add the outline of a CSS stylesheet object graph.
This commit is contained in:
parent
2e2b97dc8a
commit
d99b1a9ea0
11 changed files with 123 additions and 0 deletions
23
LibHTML/CSS/StyleValue.h
Normal file
23
LibHTML/CSS/StyleValue.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Retainable.h>
|
||||
|
||||
class StyleValue : public Retainable<StyleValue> {
|
||||
public:
|
||||
virtual ~StyleValue();
|
||||
|
||||
enum Type {
|
||||
Invalid,
|
||||
Inherit,
|
||||
Initial,
|
||||
Primitive,
|
||||
};
|
||||
|
||||
Type type() const { return m_type; }
|
||||
|
||||
protected:
|
||||
explicit StyleValue(Type);
|
||||
|
||||
private:
|
||||
Type m_type { Type::Invalid };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue