LibWeb: Reset animated CSS properties for pseudo elements

Previously we were resetting animated properties if animation effect's
target is not a pseudo element.
This commit is contained in:
Aliaksandr Kalenik 2025-05-28 15:12:37 +02:00 committed by Tim Ledbetter
commit 6a029fb6d9
Notes: github-actions[bot] 2025-05-28 16:37:19 +00:00
6 changed files with 8 additions and 13 deletions

View file

@ -103,7 +103,7 @@ void ComputedProperties::set_animated_property(PropertyID id, NonnullRefPtr<CSSS
m_animated_property_values.set(id, move(value));
}
void ComputedProperties::reset_animated_properties()
void ComputedProperties::reset_animated_properties(Badge<Animations::KeyframeEffect>)
{
m_animated_property_values.clear();
}

View file

@ -49,7 +49,7 @@ public:
};
HashMap<PropertyID, NonnullRefPtr<CSSStyleValue const>> const& animated_property_values() const { return m_animated_property_values; }
void reset_animated_properties();
void reset_animated_properties(Badge<Animations::KeyframeEffect>);
bool is_property_important(PropertyID property_id) const;
bool is_property_inherited(PropertyID property_id) const;