mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use RootedTraceableBox for dictionaries.
This commit is contained in:
parent
f1605ab149
commit
f7e2f0e641
11 changed files with 75 additions and 24 deletions
|
@ -10,6 +10,7 @@ use dom::bindings::inheritance::Castable;
|
|||
use dom::bindings::js::{MutHeapJSVal, Root};
|
||||
use dom::bindings::reflector::reflect_dom_object;
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::bindings::trace::RootedTraceableBox;
|
||||
use dom::event::Event;
|
||||
use dom::window::Window;
|
||||
use js::jsapi::{HandleValue, JSContext};
|
||||
|
@ -55,7 +56,7 @@ impl PopStateEvent {
|
|||
|
||||
pub fn Constructor(window: &Window,
|
||||
type_: DOMString,
|
||||
init: &PopStateEventBinding::PopStateEventInit)
|
||||
init: RootedTraceableBox<PopStateEventBinding::PopStateEventInit>)
|
||||
-> Fallible<Root<PopStateEvent>> {
|
||||
Ok(PopStateEvent::new(window,
|
||||
Atom::from(type_),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue