mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Change animation to schedule repaint only when necessary
Animation should trigger repaint only if it's required by animated style update.
This commit is contained in:
committed by
Alexander Kalenik
parent
d94906fa1a
commit
a5e4a51b52
Notes:
github-actions[bot]
2025-02-05 13:44:48 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/a5e4a51b520 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3447
@@ -1331,9 +1331,6 @@ void Animation::invalidate_effect()
|
||||
|
||||
if (auto* target = m_effect->target(); target) {
|
||||
target->document().set_needs_animated_style_update();
|
||||
if (target->paintable()) {
|
||||
target->paintable()->set_needs_display();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user