aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlcollection.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-07-15 22:28:43 +0200
committerMs2ger <ms2ger@gmail.com>2014-07-15 22:28:43 +0200
commitd97ec6995773ee79fbde053520bc580e7b33d15d (patch)
treee5a00cefa1309b80bc8a44287c3cc9059ed4a257 /src/components/script/dom/htmlcollection.rs
parentf816a92c72e2eb60f733b2cd7072c8542710d5ae (diff)
parentdf9d063b36aca184a336b9e67da3ce30bb46cb79 (diff)
downloadservo-d97ec6995773ee79fbde053520bc580e7b33d15d.tar.gz
servo-d97ec6995773ee79fbde053520bc580e7b33d15d.zip
Merge pull request #2839 from Ms2ger/globals
Introduce abstractions for global scopes; r=Manishearth,larsberg
Diffstat (limited to 'src/components/script/dom/htmlcollection.rs')
-rw-r--r--src/components/script/dom/htmlcollection.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/htmlcollection.rs b/src/components/script/dom/htmlcollection.rs
index 2438d745518..ed47802324b 100644
--- a/src/components/script/dom/htmlcollection.rs
+++ b/src/components/script/dom/htmlcollection.rs
@@ -4,6 +4,7 @@
use dom::bindings::codegen::InheritTypes::{ElementCast, NodeCast};
use dom::bindings::codegen::Bindings::HTMLCollectionBinding;
+use dom::bindings::global::Window;
use dom::bindings::js::{JS, JSRef, Temporary};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::element::{Element, AttributeHandlers};
@@ -46,7 +47,7 @@ impl HTMLCollection {
pub fn new(window: &JSRef<Window>, collection: CollectionTypeId) -> Temporary<HTMLCollection> {
reflect_dom_object(box HTMLCollection::new_inherited(collection),
- window, HTMLCollectionBinding::Wrap)
+ &Window(*window), HTMLCollectionBinding::Wrap)
}
}