mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 23:19:44 +00:00
LibWeb: Support decoding SVG favicons
Adds a path that checks if blob contains SVG image before reaching for image decoder. Fixes logged image decoding errors on https://chatgpt.com/
This commit is contained in:
parent
f9888b0641
commit
77f6edaf71
Notes:
github-actions[bot]
2025-08-27 06:42:04 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 77f6edaf71
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5988
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/konradekk
3 changed files with 29 additions and 5 deletions
|
@ -18,7 +18,7 @@ class SVGDecodedImageData final : public HTML::DecodedImageData {
|
|||
|
||||
public:
|
||||
class SVGPageClient;
|
||||
static ErrorOr<GC::Ref<SVGDecodedImageData>> create(JS::Realm&, GC::Ref<Page>, URL::URL const&, ByteBuffer encoded_svg);
|
||||
static ErrorOr<GC::Ref<SVGDecodedImageData>> create(JS::Realm&, GC::Ref<Page>, URL::URL const&, ReadonlyBytes encoded_svg);
|
||||
virtual ~SVGDecodedImageData() override;
|
||||
|
||||
virtual RefPtr<Gfx::ImmutableBitmap> bitmap(size_t frame_index, Gfx::IntSize) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue