#pragma once #include #include struct StyleProperty { CSS::PropertyID property_id; NonnullRefPtr value; bool important { false }; }; class StyleDeclaration : public RefCounted { public: static NonnullRefPtr create(Vector&& properties) { return adopt(*new StyleDeclaration(move(properties))); } ~StyleDeclaration(); const Vector& properties() const { return m_properties; } public: explicit StyleDeclaration(Vector&&); Vector m_properties; };