LibWeb: Move ReadableStream AOs into their own file

The main streams AO file has gotten very large, and is a bit difficult
to navigate. In an effort to improve DX, this migrates ReadableStream
AOs to their own file. And the helper classes used for the tee and pipe-
to operations are also in their own files.
This commit is contained in:
Timothy Flynn 2025-04-17 15:47:53 -04:00 committed by Tim Flynn
parent c35ef36293
commit a9ddd427cb
Notes: github-actions[bot] 2025-04-18 10:56:51 +00:00
34 changed files with 4145 additions and 3968 deletions

View file

@ -19,8 +19,8 @@
#include <LibWeb/HTML/StructuredSerialize.h>
#include <LibWeb/Infra/Strings.h>
#include <LibWeb/MimeSniff/MimeType.h>
#include <LibWeb/Streams/AbstractOperations.h>
#include <LibWeb/Streams/ReadableStreamDefaultReader.h>
#include <LibWeb/Streams/ReadableStreamOperations.h>
#include <LibWeb/WebIDL/AbstractOperations.h>
#include <LibWeb/WebIDL/Buffers.h>
@ -350,14 +350,14 @@ GC::Ref<Streams::ReadableStream> Blob::get_stream()
});
if (maybe_error.is_error()) {
readable_stream_error(*stream, maybe_error.release_error().value());
Streams::readable_stream_error(*stream, maybe_error.release_error().value());
return;
}
// FIXME: Spec bug: https://github.com/w3c/FileAPI/issues/206
//
// We need to close the stream so that the stream will finish reading.
readable_stream_close(*stream);
Streams::readable_stream_close(*stream);
}));
}
}