mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00: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
@@ -2646,9 +2646,6 @@ void Document::dispatch_events_for_animation_if_necessary(GC::Ref<Animations::An
|
||||
if (!target)
|
||||
return;
|
||||
|
||||
if (target->paintable())
|
||||
target->paintable()->set_needs_display();
|
||||
|
||||
auto previous_phase = effect->previous_phase();
|
||||
auto current_phase = effect->phase();
|
||||
auto current_iteration = effect->current_iteration().value_or(0.0);
|
||||
|
||||
Reference in New Issue
Block a user