diff --git a/Libraries/LibWeb/Streams/AbstractOperations.cpp b/Libraries/LibWeb/Streams/AbstractOperations.cpp index fc1cf1f929d..ebf26ae2036 100644 --- a/Libraries/LibWeb/Streams/AbstractOperations.cpp +++ b/Libraries/LibWeb/Streams/AbstractOperations.cpp @@ -2630,12 +2630,12 @@ WebIDL::ExceptionOr readable_stream_default_controller_enqueue(ReadableStr } // 5. Perform ! ReadableStreamDefaultControllerCallPullIfNeeded(controller). - readable_stream_default_controller_can_pull_if_needed(controller); + readable_stream_default_controller_call_pull_if_needed(controller); return {}; } // https://streams.spec.whatwg.org/#readable-stream-default-controller-call-pull-if-needed -void readable_stream_default_controller_can_pull_if_needed(ReadableStreamDefaultController& controller) +void readable_stream_default_controller_call_pull_if_needed(ReadableStreamDefaultController& controller) { // 1. Let shouldPull be ! ReadableStreamDefaultControllerShouldCallPull(controller). auto should_pull = readable_stream_default_controller_should_call_pull(controller); @@ -2674,7 +2674,7 @@ void readable_stream_default_controller_can_pull_if_needed(ReadableStreamDefault controller.set_pull_again(false); // 2. Perform ! ReadableStreamDefaultControllerCallPullIfNeeded(controller). - readable_stream_default_controller_can_pull_if_needed(controller); + readable_stream_default_controller_call_pull_if_needed(controller); } return JS::js_undefined(); @@ -2778,7 +2778,7 @@ WebIDL::ExceptionOr readable_byte_stream_controller_respond_in_readable_st // 3. If pullIntoDescriptor’s reader type is "none", if (pull_into_descriptor.reader_type == ReaderType::None) { // 1. Perform ? ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue(controller, pullIntoDescriptor). - TRY(readable_byte_stream_controller_enqueue_detached_pull_into_queue(controller, pull_into_descriptor)); + TRY(readable_byte_stream_controller_enqueue_detached_pull_into_to_queue(controller, pull_into_descriptor)); // 2. Let filledPullIntos be the result of performing ! ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller). auto filled_pulled_intos = readable_byte_stream_controller_process_pull_into_descriptors_using_queue(controller); @@ -3103,7 +3103,7 @@ WebIDL::ExceptionOr set_up_readable_stream_default_controller(ReadableStre VERIFY(!controller.pull_again()); // 4. Perform ! ReadableStreamDefaultControllerCallPullIfNeeded(controller). - readable_stream_default_controller_can_pull_if_needed(controller); + readable_stream_default_controller_call_pull_if_needed(controller); return JS::js_undefined(); }), @@ -3792,7 +3792,7 @@ WebIDL::ExceptionOr readable_byte_stream_controller_enqueue(ReadableByteSt // 5. If firstPendingPullInto’s reader type is "none", perform ? ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue(controller, firstPendingPullInto). if (first_pending_pull_into.reader_type == ReaderType::None) - TRY(readable_byte_stream_controller_enqueue_detached_pull_into_queue(controller, first_pending_pull_into)); + TRY(readable_byte_stream_controller_enqueue_detached_pull_into_to_queue(controller, first_pending_pull_into)); } // 9. If ! ReadableStreamHasDefaultReader(stream) is true, @@ -3878,7 +3878,7 @@ WebIDL::ExceptionOr> transfer_array_buffer(JS::Realm& r } // https://streams.spec.whatwg.org/#abstract-opdef-readablebytestreamcontrollerenqueuedetachedpullintotoqueue -WebIDL::ExceptionOr readable_byte_stream_controller_enqueue_detached_pull_into_queue(ReadableByteStreamController& controller, PullIntoDescriptor& pull_into_descriptor) +WebIDL::ExceptionOr readable_byte_stream_controller_enqueue_detached_pull_into_to_queue(ReadableByteStreamController& controller, PullIntoDescriptor& pull_into_descriptor) { // 1. Assert: pullIntoDescriptor’s reader type is "none". VERIFY(pull_into_descriptor.reader_type == ReaderType::None); diff --git a/Libraries/LibWeb/Streams/AbstractOperations.h b/Libraries/LibWeb/Streams/AbstractOperations.h index 7683c8d5e56..7e612f558f6 100644 --- a/Libraries/LibWeb/Streams/AbstractOperations.h +++ b/Libraries/LibWeb/Streams/AbstractOperations.h @@ -65,7 +65,7 @@ WebIDL::ExceptionOr set_up_readable_stream_byob_reader(ReadableStreamBYOBR void readable_stream_default_controller_close(ReadableStreamDefaultController&); bool readable_stream_default_controller_has_backpressure(ReadableStreamDefaultController&); WebIDL::ExceptionOr readable_stream_default_controller_enqueue(ReadableStreamDefaultController&, JS::Value chunk); -void readable_stream_default_controller_can_pull_if_needed(ReadableStreamDefaultController&); +void readable_stream_default_controller_call_pull_if_needed(ReadableStreamDefaultController&); bool readable_stream_default_controller_should_call_pull(ReadableStreamDefaultController&); void readable_stream_default_controller_clear_algorithms(ReadableStreamDefaultController&); @@ -86,7 +86,7 @@ WebIDL::ExceptionOr readable_byte_stream_controller_respond_with_new_view( WebIDL::ExceptionOr readable_byte_stream_controller_enqueue(ReadableByteStreamController& controller, JS::Value chunk); WebIDL::ExceptionOr> transfer_array_buffer(JS::Realm& realm, JS::ArrayBuffer& buffer); -WebIDL::ExceptionOr readable_byte_stream_controller_enqueue_detached_pull_into_queue(ReadableByteStreamController& controller, PullIntoDescriptor& pull_into_descriptor); +WebIDL::ExceptionOr readable_byte_stream_controller_enqueue_detached_pull_into_to_queue(ReadableByteStreamController& controller, PullIntoDescriptor& pull_into_descriptor); void readable_byte_stream_controller_commit_pull_into_descriptor(ReadableStream&, PullIntoDescriptor const&); void readable_byte_stream_controller_process_read_requests_using_queue(ReadableByteStreamController& controller); [[nodiscard]] SinglyLinkedList> readable_byte_stream_controller_process_pull_into_descriptors_using_queue(ReadableByteStreamController&); diff --git a/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp b/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp index 049ec228076..6e0df40bc92 100644 --- a/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp +++ b/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp @@ -100,7 +100,7 @@ void ReadableStreamDefaultController::pull_steps(Web::Streams::ReadRequest& read } // 3. Otherwise, perform ! ReadableStreamDefaultControllerCallPullIfNeeded(this). else { - readable_stream_default_controller_can_pull_if_needed(*this); + readable_stream_default_controller_call_pull_if_needed(*this); } // 4. Perform readRequest’s chunk steps, given chunk. @@ -112,7 +112,7 @@ void ReadableStreamDefaultController::pull_steps(Web::Streams::ReadRequest& read readable_stream_add_read_request(stream, read_request); // 2. Perform ! ReadableStreamDefaultControllerCallPullIfNeeded(this). - readable_stream_default_controller_can_pull_if_needed(*this); + readable_stream_default_controller_call_pull_if_needed(*this); } }