diff options
author | tanishka <109246904+taniishkaaa@users.noreply.github.com> | 2024-10-15 10:15:16 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-15 04:45:16 +0000 |
commit | 46d6c0c883750de2f57bba8da3eb199b01a9761f (patch) | |
tree | 49e67660a48bb9ec24eac01afe7e31c3cc983575 /components/script/script_thread.rs | |
parent | 1e39787573e180801ed70c3f708ebb22631eeeb9 (diff) | |
download | servo-46d6c0c883750de2f57bba8da3eb199b01a9761f.tar.gz servo-46d6c0c883750de2f57bba8da3eb199b01a9761f.zip |
CanGc fixes in components/script/dom (#33843)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 29a762ba80d..a268ad6c900 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1614,7 +1614,7 @@ impl ScriptThread { }, CompositorEvent::WheelEvent(delta, point, node_address) => { - self.handle_wheel_event(pipeline_id, delta, point, node_address); + self.handle_wheel_event(pipeline_id, delta, point, node_address, can_gc); }, CompositorEvent::KeyboardEvent(key_event) => { @@ -3955,12 +3955,13 @@ impl ScriptThread { wheel_delta: WheelDelta, point: Point2D<f32>, node_address: Option<UntrustedNodeAddress>, + can_gc: CanGc, ) { let Some(document) = self.documents.borrow().find_document(pipeline_id) else { warn!("Message sent to closed pipeline {pipeline_id}."); return; }; - unsafe { document.handle_wheel_event(wheel_delta, point, node_address) }; + unsafe { document.handle_wheel_event(wheel_delta, point, node_address, can_gc) }; } /// Handle a "navigate an iframe" message from the constellation. |