mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibCompress: Refactor deflate de/compressor using zlib
Also remove two crash tests that are not relevant anymore because the implementation changed substantially.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
2baa7977a4
commit
1c2b373e9c
Notes:
github-actions[bot]
2025-03-19 12:48:41 +00:00
Author: https://github.com/devgianlu Commit: https://github.com/LadybirdBrowser/ladybird/commit/1c2b373e9cc Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3755 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/trflynn89
@@ -34,7 +34,7 @@ WebIDL::ExceptionOr<GC::Ref<DecompressionStream>> DecompressionStream::construct
|
||||
case Bindings::CompressionFormat::Deflate:
|
||||
return TRY(Compress::ZlibDecompressor::create(move(input_stream)));
|
||||
case Bindings::CompressionFormat::DeflateRaw:
|
||||
return TRY(Compress::DeflateDecompressor::construct(make<LittleEndianInputBitStream>(move(input_stream))));
|
||||
return TRY(Compress::DeflateDecompressor::create(move(input_stream)));
|
||||
case Bindings::CompressionFormat::Gzip:
|
||||
return TRY(Compress::GzipDecompressor::create((move(input_stream))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user