LibWeb: Invalidate the canvas element after put_image_data()

This makes sure we repaint it right away so we can see the changes.
This commit is contained in:
Andreas Kling 2020-04-22 00:09:23 +02:00
parent 5326eebb1b
commit ef69f900c7
Notes: sideshowbarker 2024-07-19 07:24:32 +09:00

View file

@ -188,6 +188,8 @@ void CanvasRenderingContext2D::put_image_data(const ImageData& image_data, float
return;
painter->blit(Gfx::Point(x, y), image_data.bitmap(), image_data.bitmap().rect());
did_draw(Gfx::FloatRect(x, y, image_data.width(), image_data.height()));
}
}