mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Most of the code refactoring needed to be done is done with this commit.
This commit is contained in:
parent
dbec9d8454
commit
883902bd97
86 changed files with 469 additions and 469 deletions
|
@ -55,7 +55,7 @@ impl TouchEvent {
|
|||
|
||||
pub fn new(window: &Window,
|
||||
type_: DOMString,
|
||||
canBubble: EventBubbles,
|
||||
can_bubble: EventBubbles,
|
||||
cancelable: EventCancelable,
|
||||
view: Option<&Window>,
|
||||
detail: i32,
|
||||
|
@ -68,7 +68,7 @@ impl TouchEvent {
|
|||
meta_key: bool) -> Root<TouchEvent> {
|
||||
let ev = TouchEvent::new_uninitialized(window, touches, changed_touches, target_touches);
|
||||
ev.upcast::<UIEvent>().InitUIEvent(type_,
|
||||
bool::from(canBubble),
|
||||
bool::from(can_bubble),
|
||||
bool::from(cancelable),
|
||||
view, detail);
|
||||
ev.ctrl_key.set(ctrl_key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue