mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-28 11:54:15 +00:00
LibHTML: Add the outline of a CSS stylesheet object graph.
This commit is contained in:
parent
2e2b97dc8a
commit
d99b1a9ea0
Notes:
sideshowbarker
2024-07-19 13:32:39 +09:00
Author: https://github.com/awesomekling
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