1
Fork 0
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:
Andreas Kling 2019-06-20 23:25:25 +02:00
parent 2e2b97dc8a
commit d99b1a9ea0
11 changed files with 123 additions and 0 deletions

23
LibHTML/CSS/StyleValue.h Normal file
View 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 };
};