mirror of
https://github.com/servo/servo.git
synced 2025-10-09 21:10:19 +01:00
auto merge of #2649 : ebalint/servo/2580_JS_T_unrooted_replace, r=jdm
removed .clone() calls modified from_rooted method parameter: T to &T
This commit is contained in:
commit
7ed5041891
20 changed files with 51 additions and 53 deletions
|
@ -42,7 +42,7 @@ impl HTMLCollection {
|
|||
HTMLCollection {
|
||||
collection: collection,
|
||||
reflector_: Reflector::new(),
|
||||
window: window.unrooted(),
|
||||
window: JS::from_rooted(window),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ impl HTMLCollection {
|
|||
impl HTMLCollection {
|
||||
pub fn create(window: &JSRef<Window>, root: &JSRef<Node>,
|
||||
filter: Box<CollectionFilter>) -> Temporary<HTMLCollection> {
|
||||
HTMLCollection::new(window, Live(root.unrooted(), filter))
|
||||
HTMLCollection::new(window, Live(JS::from_rooted(root), filter))
|
||||
}
|
||||
|
||||
pub fn by_tag_name(window: &JSRef<Window>, root: &JSRef<Node>, tag: DOMString)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue