aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gamepad.rs
diff options
context:
space:
mode:
authorchickenleaf <lashwinib@gmail.com>2024-10-16 08:20:28 +0530
committerGitHub <noreply@github.com>2024-10-16 02:50:28 +0000
commita2f81d69c1971f07c2af8633756953ddd70a1bb5 (patch)
treea0f3cc7e6939f3e588b14b49b483a2d31e0d1aa4 /components/script/dom/gamepad.rs
parent5b8fbb023dfba890c7744e826a077776516131c6 (diff)
downloadservo-a2f81d69c1971f07c2af8633756953ddd70a1bb5.tar.gz
servo-a2f81d69c1971f07c2af8633756953ddd70a1bb5.zip
CanGc fixes (#33852)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
Diffstat (limited to 'components/script/dom/gamepad.rs')
-rw-r--r--components/script/dom/gamepad.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/gamepad.rs b/components/script/dom/gamepad.rs
index 7f69f69af84..106b37a908e 100644
--- a/components/script/dom/gamepad.rs
+++ b/components/script/dom/gamepad.rs
@@ -132,7 +132,7 @@ impl Gamepad {
) -> DomRoot<Gamepad> {
let button_list = GamepadButtonList::init_buttons(global);
let vibration_actuator =
- GamepadHapticActuator::new(global, gamepad_id, supported_haptic_effects);
+ GamepadHapticActuator::new(global, gamepad_id, supported_haptic_effects, can_gc);
let index = if xr { -1 } else { 0 };
let gamepad = reflect_dom_object_with_proto(
Box::new(Gamepad::new_inherited(