mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Don't invalidate style for animations in idle state
This commit is contained in:
parent
b92a8553c7
commit
80c0a16597
Notes:
github-actions[bot]
2025-03-04 17:37:09 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 80c0a16597
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3800
2 changed files with 3 additions and 1 deletions
|
@ -1522,7 +1522,7 @@ void Document::update_animated_style_if_needed()
|
|||
|
||||
for (auto& timeline : m_associated_animation_timelines) {
|
||||
for (auto& animation : timeline->associated_animations()) {
|
||||
if (animation->is_finished())
|
||||
if (animation->is_idle() || animation->is_finished())
|
||||
continue;
|
||||
if (auto effect = animation->effect()) {
|
||||
if (auto* target = effect->target())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue