1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:47:35 +00:00

LibWeb: Stop animation driver timer after document becomes inactive

This commit is contained in:
Aliaksandr Kalenik 2024-03-11 04:02:29 +01:00 committed by Andreas Kling
parent fd63ffb8c3
commit ecce570cb7

View file

@ -3127,6 +3127,9 @@ void Document::did_stop_being_active_document_in_navigable()
if (document_observer->document_became_inactive())
document_observer->document_became_inactive()->function()();
}
if (m_animation_driver_timer)
m_animation_driver_timer->stop();
}
void Document::increment_throw_on_dynamic_markup_insertion_counter(Badge<HTML::HTMLParser>)