mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::codegen::BindingDeclarations::ClientRectListBinding;
|
||||
use dom::bindings::js::JS;
|
||||
use dom::bindings::js::{JS, JSRef};
|
||||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::clientrect::ClientRect;
|
||||
use dom::window::Window;
|
||||
|
@ -25,9 +25,9 @@ impl ClientRectList {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(window: &JS<Window>,
|
||||
pub fn new(window: &JSRef<Window>,
|
||||
rects: Vec<JS<ClientRect>>) -> JS<ClientRectList> {
|
||||
reflect_dom_object(~ClientRectList::new_inherited(window.clone(), rects),
|
||||
reflect_dom_object(~ClientRectList::new_inherited(window.unrooted(), rects),
|
||||
window, ClientRectListBinding::Wrap)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue