mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
LibWeb: Stop animation driver timer after document becomes inactive
This commit is contained in:
parent
fd63ffb8c3
commit
ecce570cb7
1 changed files with 3 additions and 0 deletions
|
@ -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>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue