mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibGfx: Remove maximum size limit for decoded images
It is unlikely this is needed anymore, and as pointed out things should now safely return OOM if the bitmap is too large to allocate. Also, no recently added decoders respected this limit anyway. Fixes #20872
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 03:19:14 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/bbf66ea055 Pull-request: https://github.com/SerenityOS/serenity/pull/20895 Issue: https://github.com/SerenityOS/serenity/issues/20872
@@ -18,9 +18,6 @@ namespace Gfx {
|
||||
|
||||
class Bitmap;
|
||||
|
||||
static constexpr size_t maximum_width_for_decoded_images = 16384;
|
||||
static constexpr size_t maximum_height_for_decoded_images = 16384;
|
||||
|
||||
struct ImageFrameDescriptor {
|
||||
RefPtr<Bitmap> image;
|
||||
int duration { 0 };
|
||||
|
||||
Reference in New Issue
Block a user