mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Support the updated spidermonkey bindings
This commit is contained in:
parent
32daa17d5c
commit
e733a7c46a
20 changed files with 234 additions and 223 deletions
|
@ -51,6 +51,7 @@ impl CustomEvent {
|
|||
ev.r().InitCustomEvent(global.get_cx(), type_, bubbles, cancelable, detail);
|
||||
ev
|
||||
}
|
||||
#[allow(unsafe_code)]
|
||||
pub fn Constructor(global: GlobalRef,
|
||||
type_: DOMString,
|
||||
init: &CustomEventBinding::CustomEventInit) -> Fallible<Root<CustomEvent>>{
|
||||
|
@ -58,7 +59,7 @@ impl CustomEvent {
|
|||
type_,
|
||||
init.parent.bubbles,
|
||||
init.parent.cancelable,
|
||||
HandleValue { ptr: &init.detail }))
|
||||
unsafe { HandleValue::from_marked_location(&init.detail) }))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue