mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00: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:
parent
2baa7977a4
commit
1c2b373e9c
Notes:
github-actions[bot]
2025-03-19 12:48:41 +00:00
Author: https://github.com/devgianlu
Commit: 1c2b373e9c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3755
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/trflynn89
8 changed files with 56 additions and 1018 deletions
|
@ -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))));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue