#pragma once #include #include class StyleDeclaration : public RefCounted { public: static NonnullRefPtr create(const String& property_name, NonnullRefPtr&& value) { return adopt(*new StyleDeclaration(property_name, move(value))); } ~StyleDeclaration(); const String& property_name() const { return m_property_name; } const StyleValue& value() const { return *m_value; } public: StyleDeclaration(const String& property_name, NonnullRefPtr&&); String m_property_name; NonnullRefPtr m_value; };