mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-10 02:51:55 +00:00
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:
parent
c35ef36293
commit
a9ddd427cb
Notes:
github-actions[bot]
2025-04-18 10:56:51 +00:00
Author: https://github.com/trflynn89
Commit: a9ddd427cb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4392
34 changed files with 4145 additions and 3968 deletions
|
@ -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);
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue