mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove the unused window field from HTMLCollection.
This commit is contained in:
parent
7b9cdf4c1e
commit
c747df0e59
1 changed files with 2 additions and 4 deletions
|
@ -34,20 +34,18 @@ pub enum CollectionTypeId {
|
|||
pub struct HTMLCollection {
|
||||
collection: CollectionTypeId,
|
||||
reflector_: Reflector,
|
||||
window: JS<Window>,
|
||||
}
|
||||
|
||||
impl HTMLCollection {
|
||||
pub fn new_inherited(window: &JSRef<Window>, collection: CollectionTypeId) -> HTMLCollection {
|
||||
pub fn new_inherited(collection: CollectionTypeId) -> HTMLCollection {
|
||||
HTMLCollection {
|
||||
collection: collection,
|
||||
reflector_: Reflector::new(),
|
||||
window: JS::from_rooted(window),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(window: &JSRef<Window>, collection: CollectionTypeId) -> Temporary<HTMLCollection> {
|
||||
reflect_dom_object(box HTMLCollection::new_inherited(window, collection),
|
||||
reflect_dom_object(box HTMLCollection::new_inherited(collection),
|
||||
window, HTMLCollectionBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue