mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Mark methods as unsafe.
This commit is contained in:
parent
5b04bf785a
commit
0854953e35
1 changed files with 4 additions and 4 deletions
|
@ -1185,7 +1185,7 @@ impl Document {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
pub fn handle_mouse_event(
|
pub unsafe fn handle_mouse_event(
|
||||||
&self,
|
&self,
|
||||||
js_runtime: *mut JSRuntime,
|
js_runtime: *mut JSRuntime,
|
||||||
button: MouseButton,
|
button: MouseButton,
|
||||||
|
@ -1389,7 +1389,7 @@ impl Document {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
pub fn handle_mouse_move_event(
|
pub unsafe fn handle_mouse_move_event(
|
||||||
&self,
|
&self,
|
||||||
js_runtime: *mut JSRuntime,
|
js_runtime: *mut JSRuntime,
|
||||||
client_point: Point2D<f32>,
|
client_point: Point2D<f32>,
|
||||||
|
@ -1562,7 +1562,7 @@ impl Document {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
pub fn handle_wheel_event(
|
pub unsafe fn handle_wheel_event(
|
||||||
&self,
|
&self,
|
||||||
js_runtime: *mut JSRuntime,
|
js_runtime: *mut JSRuntime,
|
||||||
delta: WheelDelta,
|
delta: WheelDelta,
|
||||||
|
@ -1609,7 +1609,7 @@ impl Document {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
pub fn handle_touch_event(
|
pub unsafe fn handle_touch_event(
|
||||||
&self,
|
&self,
|
||||||
js_runtime: *mut JSRuntime,
|
js_runtime: *mut JSRuntime,
|
||||||
event_type: TouchEventType,
|
event_type: TouchEventType,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue