diff options
author | Yerkebulan Tulibergenov <yerkebulan@gmail.com> | 2025-02-21 21:42:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-22 05:42:55 +0000 |
commit | 245a39c07eb14f1acb03c4d85aaa4901af863a71 (patch) | |
tree | 648c6d8de054b198aed81e680685afbce40ca457 /components/script/dom/response.rs | |
parent | 35f21e426b2fec968ebd0970b743d43ac6fd012f (diff) | |
download | servo-245a39c07eb14f1acb03c4d85aaa4901af863a71.tar.gz servo-245a39c07eb14f1acb03c4d85aaa4901af863a71.zip |
refactor: add CanGc as argument to create_buffer_source (#35597)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
Diffstat (limited to 'components/script/dom/response.rs')
-rw-r--r-- | components/script/dom/response.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/response.rs b/components/script/dom/response.rs index 9b6319043eb..943317c56f1 100644 --- a/components/script/dom/response.rs +++ b/components/script/dom/response.rs @@ -454,12 +454,12 @@ impl Response { *self.stream_consumer.borrow_mut() = sc; } - pub(crate) fn stream_chunk(&self, chunk: Vec<u8>) { + pub(crate) fn stream_chunk(&self, chunk: Vec<u8>, can_gc: CanGc) { // Note, are these two actually mutually exclusive? if let Some(stream_consumer) = self.stream_consumer.borrow().as_ref() { stream_consumer.consume_chunk(chunk.as_slice()); } else if let Some(body) = self.body_stream.get() { - body.enqueue_native(chunk); + body.enqueue_native(chunk, can_gc); } } |