mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove the unused window member of AttrList.
This commit is contained in:
parent
91de702edb
commit
6190281945
1 changed files with 2 additions and 4 deletions
|
@ -12,21 +12,19 @@ use dom::window::Window;
|
||||||
#[deriving(Encodable)]
|
#[deriving(Encodable)]
|
||||||
pub struct AttrList {
|
pub struct AttrList {
|
||||||
reflector_: Reflector,
|
reflector_: Reflector,
|
||||||
window: JS<Window>,
|
|
||||||
owner: JS<Element>,
|
owner: JS<Element>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AttrList {
|
impl AttrList {
|
||||||
pub fn new_inherited(window: &JSRef<Window>, elem: &JSRef<Element>) -> AttrList {
|
pub fn new_inherited(elem: &JSRef<Element>) -> AttrList {
|
||||||
AttrList {
|
AttrList {
|
||||||
reflector_: Reflector::new(),
|
reflector_: Reflector::new(),
|
||||||
window: JS::from_rooted(window),
|
|
||||||
owner: JS::from_rooted(elem),
|
owner: JS::from_rooted(elem),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new(window: &JSRef<Window>, elem: &JSRef<Element>) -> Temporary<AttrList> {
|
pub fn new(window: &JSRef<Window>, elem: &JSRef<Element>) -> Temporary<AttrList> {
|
||||||
reflect_dom_object(box AttrList::new_inherited(window, elem),
|
reflect_dom_object(box AttrList::new_inherited(elem),
|
||||||
window, AttrListBinding::Wrap)
|
window, AttrListBinding::Wrap)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue