diff options
Diffstat (limited to 'components/script/dom/stylesheetlist.rs')
-rw-r--r-- | components/script/dom/stylesheetlist.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/stylesheetlist.rs b/components/script/dom/stylesheetlist.rs index 3021b47a0a9..7a479fe4c17 100644 --- a/components/script/dom/stylesheetlist.rs +++ b/components/script/dom/stylesheetlist.rs @@ -5,7 +5,7 @@ use dom::bindings::codegen::Bindings::StyleSheetListBinding; use dom::bindings::codegen::Bindings::StyleSheetListBinding::StyleSheetListMethods; use dom::bindings::reflector::{Reflector, reflect_dom_object}; -use dom::bindings::root::{JS, Root}; +use dom::bindings::root::{Dom, Root}; use dom::document::Document; use dom::stylesheet::StyleSheet; use dom::window::Window; @@ -14,12 +14,12 @@ use dom_struct::dom_struct; #[dom_struct] pub struct StyleSheetList { reflector_: Reflector, - document: JS<Document>, + document: Dom<Document>, } impl StyleSheetList { #[allow(unrooted_must_root)] - fn new_inherited(doc: JS<Document>) -> StyleSheetList { + fn new_inherited(doc: Dom<Document>) -> StyleSheetList { StyleSheetList { reflector_: Reflector::new(), document: doc @@ -27,7 +27,7 @@ impl StyleSheetList { } #[allow(unrooted_must_root)] - pub fn new(window: &Window, document: JS<Document>) -> Root<StyleSheetList> { + pub fn new(window: &Window, document: Dom<Document>) -> Root<StyleSheetList> { reflect_dom_object(box StyleSheetList::new_inherited(document), window, StyleSheetListBinding::Wrap) } |