mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove the unused window field from NodeList.
This commit is contained in:
parent
91de702edb
commit
7b9cdf4c1e
1 changed files with 2 additions and 5 deletions
|
@ -18,22 +18,19 @@ pub enum NodeListType {
|
||||||
pub struct NodeList {
|
pub struct NodeList {
|
||||||
list_type: NodeListType,
|
list_type: NodeListType,
|
||||||
reflector_: Reflector,
|
reflector_: Reflector,
|
||||||
window: JS<Window>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl NodeList {
|
impl NodeList {
|
||||||
pub fn new_inherited(window: &JSRef<Window>,
|
pub fn new_inherited(list_type: NodeListType) -> NodeList {
|
||||||
list_type: NodeListType) -> NodeList {
|
|
||||||
NodeList {
|
NodeList {
|
||||||
list_type: list_type,
|
list_type: list_type,
|
||||||
reflector_: Reflector::new(),
|
reflector_: Reflector::new(),
|
||||||
window: JS::from_rooted(window)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new(window: &JSRef<Window>,
|
pub fn new(window: &JSRef<Window>,
|
||||||
list_type: NodeListType) -> Temporary<NodeList> {
|
list_type: NodeListType) -> Temporary<NodeList> {
|
||||||
reflect_dom_object(box NodeList::new_inherited(window, list_type),
|
reflect_dom_object(box NodeList::new_inherited(list_type),
|
||||||
window, NodeListBinding::Wrap)
|
window, NodeListBinding::Wrap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue