LibWeb: Don't mangle inherited properties when updating animated style

This commit is contained in:
Callum Law 2025-11-19 00:04:20 +13:00 committed by Jelle Raaijmakers
parent 01f6f33236
commit 408bbead31
Notes: github-actions[bot] 2025-11-21 08:25:55 +00:00
5 changed files with 39 additions and 4 deletions

View file

@ -161,9 +161,12 @@ void ComputedProperties::remove_animated_property(PropertyID id)
m_animated_property_values.remove(id);
}
void ComputedProperties::reset_animated_properties(Badge<Animations::KeyframeEffect>)
void ComputedProperties::reset_non_inherited_animated_properties(Badge<Animations::KeyframeEffect>)
{
m_animated_property_values.clear();
for (auto property_id : m_animated_property_values.keys()) {
if (!is_animated_property_inherited(property_id))
m_animated_property_values.remove(property_id);
}
}
StyleValue const& ComputedProperties::property(PropertyID property_id, WithAnimationsApplied return_animated_value) const