mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Address review comments.
This commit is contained in:
parent
7b3e6d1f21
commit
0f2d0b1dc3
99 changed files with 388 additions and 380 deletions
|
@ -16,18 +16,18 @@ pub struct ClientRectList {
|
|||
}
|
||||
|
||||
impl ClientRectList {
|
||||
pub fn new_inherited(window: JS<Window>,
|
||||
pub fn new_inherited(window: &JSRef<Window>,
|
||||
rects: Vec<JSRef<ClientRect>>) -> ClientRectList {
|
||||
ClientRectList {
|
||||
reflector_: Reflector::new(),
|
||||
rects: rects.iter().map(|rect| rect.unrooted()).collect(),
|
||||
window: window,
|
||||
window: window.unrooted(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(window: &JSRef<Window>,
|
||||
rects: Vec<JSRef<ClientRect>>) -> Temporary<ClientRectList> {
|
||||
reflect_dom_object(~ClientRectList::new_inherited(window.unrooted(), rects),
|
||||
reflect_dom_object(~ClientRectList::new_inherited(window, rects),
|
||||
window, ClientRectListBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue