mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb: Move WritableStream 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 WritableStream AOs to their own file.
This commit is contained in:
parent
a9ddd427cb
commit
26c01f0957
Notes:
github-actions[bot]
2025-04-18 10:56:46 +00:00
Author: https://github.com/trflynn89
Commit: 26c01f0957
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4392
11 changed files with 1372 additions and 1326 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <LibWeb/Streams/WritableStream.h>
|
||||
#include <LibWeb/Streams/WritableStreamDefaultController.h>
|
||||
#include <LibWeb/Streams/WritableStreamDefaultWriter.h>
|
||||
#include <LibWeb/Streams/WritableStreamOperations.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
namespace Web::Streams {
|
||||
|
@ -45,7 +46,7 @@ WebIDL::ExceptionOr<GC::Ref<WritableStream>> WritableStream::construct_impl(JS::
|
|||
auto high_water_mark = TRY(extract_high_water_mark(strategy, 1));
|
||||
|
||||
// 7. Perform ? SetUpWritableStreamDefaultControllerFromUnderlyingSink(this, underlyingSink, underlyingSinkDict, highWaterMark, sizeAlgorithm).
|
||||
TRY(set_up_writable_stream_default_controller_from_underlying_sink(*writable_stream, underlying_sink, underlying_sink_dict, high_water_mark, move(size_algorithm)));
|
||||
TRY(set_up_writable_stream_default_controller_from_underlying_sink(*writable_stream, underlying_sink, underlying_sink_dict, high_water_mark, size_algorithm));
|
||||
|
||||
return writable_stream;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue