mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Turn on GC all the time. Fix rooting errors during parsing and storing timers. Fix borrow errors during tracing.
This commit is contained in:
parent
4051a8096d
commit
ffdc3f5b32
109 changed files with 1567 additions and 996 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use dom::attr::Attr;
|
||||
use dom::bindings::codegen::BindingDeclarations::AttrListBinding;
|
||||
use dom::bindings::js::JS;
|
||||
use dom::bindings::js::{JS, JSRef};
|
||||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::element::Element;
|
||||
use dom::window::Window;
|
||||
|
@ -25,8 +25,8 @@ impl AttrList {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(window: &JS<Window>, elem: &JS<Element>) -> JS<AttrList> {
|
||||
reflect_dom_object(~AttrList::new_inherited(window.clone(), elem.clone()),
|
||||
pub fn new(window: &JSRef<Window>, elem: &JSRef<Element>) -> JS<AttrList> {
|
||||
reflect_dom_object(~AttrList::new_inherited(window.unrooted(), elem.unrooted()),
|
||||
window, AttrListBinding::Wrap)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue