mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +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)]
|
||||
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<f32>,
|
||||
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue