diff options
Diffstat (limited to 'components/script/dom/comment.rs')
-rw-r--r-- | components/script/dom/comment.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs index b135def6e2a..9efe8c8164c 100644 --- a/components/script/dom/comment.rs +++ b/components/script/dom/comment.rs @@ -9,8 +9,8 @@ use dom::bindings::js::Root; use dom::bindings::str::DOMString; use dom::characterdata::CharacterData; use dom::document::Document; -use dom::globalscope::GlobalScope; use dom::node::Node; +use dom::window::Window; /// An HTML comment. #[dom_struct] @@ -31,8 +31,8 @@ impl Comment { CommentBinding::Wrap) } - pub fn Constructor(global: &GlobalScope, data: DOMString) -> Fallible<Root<Comment>> { - let document = global.as_window().Document(); + pub fn Constructor(window: &Window, data: DOMString) -> Fallible<Root<Comment>> { + let document = window.Document(); Ok(Comment::new(data, &document)) } } |