1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:18:11 +00:00

LibWeb: Don't animate images outside the visible viewport :^)

This commit is contained in:
Andreas Kling 2020-06-14 19:35:10 +02:00
parent 73c9f7ebf4
commit 0072370459

View file

@ -87,6 +87,9 @@ void ImageLoader::resource_did_load()
void ImageLoader::animate()
{
if (!m_visible_in_viewport)
return;
auto* decoder = image_decoder();
ASSERT(decoder);