StyleValue.h 355 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <AK/Retainable.h>
  3. class StyleValue : public Retainable<StyleValue> {
  4. public:
  5. virtual ~StyleValue();
  6. enum Type {
  7. Invalid,
  8. Inherit,
  9. Initial,
  10. Primitive,
  11. };
  12. Type type() const { return m_type; }
  13. protected:
  14. explicit StyleValue(Type);
  15. private:
  16. Type m_type { Type::Invalid };
  17. };