mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Schedule required invalidations when animation effect is removed
For example, if layout affecting property is animated then once this animation is removed we need to schduled layout invalidation.
This commit is contained in:
parent
6a029fb6d9
commit
62739c30d9
Notes:
github-actions[bot]
2025-05-28 16:37:12 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 62739c30d9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4903
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ void Animation::set_effect(GC::Ptr<AnimationEffect> new_effect)
|
|||
m_effect->set_associated_animation({});
|
||||
m_effect = new_effect;
|
||||
|
||||
// Once animated properties of the old effect no longer apply, we need to ensure appropriate invalidations are scheduled
|
||||
if (old_effect)
|
||||
old_effect->update_computed_properties();
|
||||
|
||||
// 7. Run the procedure to update an animation’s finished state for animation with the did seek flag set to false,
|
||||
// and the synchronously notify flag set to false.
|
||||
update_finished_state(DidSeek::No, SynchronouslyNotify::No);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue