From 0854953e3556723202a2d622eddc5d08ee46aaf0 Mon Sep 17 00:00:00 2001 From: teymour-aldridge Date: Sun, 31 Jan 2021 21:51:06 +0000 Subject: [PATCH] Mark methods as unsafe. --- components/script/dom/document.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 8ff05e67849..cee460d4fa3 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1185,7 +1185,7 @@ impl Document { } #[allow(unsafe_code)] - pub fn handle_mouse_event( + pub unsafe fn handle_mouse_event( &self, js_runtime: *mut JSRuntime, button: MouseButton, @@ -1389,7 +1389,7 @@ impl Document { } #[allow(unsafe_code)] - pub fn handle_mouse_move_event( + pub unsafe fn handle_mouse_move_event( &self, js_runtime: *mut JSRuntime, client_point: Point2D, @@ -1562,7 +1562,7 @@ impl Document { } #[allow(unsafe_code)] - pub fn handle_wheel_event( + pub unsafe fn handle_wheel_event( &self, js_runtime: *mut JSRuntime, delta: WheelDelta, @@ -1609,7 +1609,7 @@ impl Document { } #[allow(unsafe_code)] - pub fn handle_touch_event( + pub unsafe fn handle_touch_event( &self, js_runtime: *mut JSRuntime, event_type: TouchEventType,