|
@@ -29,6 +29,7 @@ public:
|
|
|
virtual String item(size_t index) const = 0;
|
|
|
|
|
|
virtual Optional<StyleProperty> property(PropertyID) const = 0;
|
|
|
+ virtual Optional<StyleProperty> custom_property(FlyString const& custom_property_name) const = 0;
|
|
|
|
|
|
virtual WebIDL::ExceptionOr<void> set_property(PropertyID, StringView css_text, StringView priority = ""sv);
|
|
|
virtual WebIDL::ExceptionOr<String> remove_property(PropertyID) = 0;
|
|
@@ -75,13 +76,14 @@ public:
|
|
|
virtual String item(size_t index) const override;
|
|
|
|
|
|
virtual Optional<StyleProperty> property(PropertyID) const override;
|
|
|
+ virtual Optional<StyleProperty> custom_property(FlyString const& custom_property_name) const override { return m_custom_properties.get(custom_property_name); }
|
|
|
|
|
|
virtual WebIDL::ExceptionOr<void> set_property(StringView property_name, StringView css_text, StringView priority) override;
|
|
|
virtual WebIDL::ExceptionOr<String> remove_property(PropertyID) override;
|
|
|
|
|
|
Vector<StyleProperty> const& properties() const { return m_properties; }
|
|
|
HashMap<FlyString, StyleProperty> const& custom_properties() const { return m_custom_properties; }
|
|
|
- Optional<StyleProperty> custom_property(FlyString const& custom_property_name) const { return m_custom_properties.get(custom_property_name); }
|
|
|
+
|
|
|
size_t custom_property_count() const { return m_custom_properties.size(); }
|
|
|
|
|
|
virtual String serialized() const final override;
|