mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibWeb: Don't invalidate style of finished animations
Removes lots of completely unnecessary work, especially when animated property affects layout.
This commit is contained in:
parent
94de31ff3b
commit
8e481f65f5
Notes:
github-actions[bot]
2025-03-03 20:46:36 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/8e481f65f59 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3783 Reviewed-by: https://github.com/awesomekling ✅
1 changed files with 2 additions and 0 deletions
|
@ -1529,6 +1529,8 @@ void Document::update_animated_style_if_needed()
|
|||
}
|
||||
|
||||
for (auto& animation : timeline->associated_animations()) {
|
||||
if (animation->is_finished())
|
||||
continue;
|
||||
if (auto effect = animation->effect())
|
||||
effect->update_computed_properties();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue