mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Don't animate images outside the visible viewport :^)
This commit is contained in:
parent
73c9f7ebf4
commit
0072370459
Notes:
sideshowbarker
2024-07-19 05:38:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/00723704598
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ void ImageLoader::resource_did_load()
|
|||
|
||||
void ImageLoader::animate()
|
||||
{
|
||||
if (!m_visible_in_viewport)
|
||||
return;
|
||||
|
||||
auto* decoder = image_decoder();
|
||||
ASSERT(decoder);
|
||||
|
||||
|
|
Loading…
Reference in a new issue