aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs5
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.