diff options
author | Rohan Prinja <rohan@cs.unc.edu> | 2016-11-10 02:24:01 -0500 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-11-30 23:23:41 +0100 |
commit | 973f77c00698938c1333c0df7da30993075264d1 (patch) | |
tree | 1f7533d43218cb3916acb812b7f5139848ed64d9 /components/script/dom/domparser.rs | |
parent | 8af2327e95fe2f229df27074b868aad56bce2252 (diff) | |
download | servo-973f77c00698938c1333c0df7da30993075264d1.tar.gz servo-973f77c00698938c1333c0df7da30993075264d1.zip |
Make WebIDL constructors take a more specific global if possible (fixes #14071)
Diffstat (limited to 'components/script/dom/domparser.rs')
-rw-r--r-- | components/script/dom/domparser.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/domparser.rs b/components/script/dom/domparser.rs index 2a770aeb3a0..0ce2d50e09a 100644 --- a/components/script/dom/domparser.rs +++ b/components/script/dom/domparser.rs @@ -17,7 +17,6 @@ use dom::bindings::reflector::{Reflector, reflect_dom_object}; use dom::bindings::str::DOMString; use dom::document::{Document, IsHTMLDocument}; use dom::document::DocumentSource; -use dom::globalscope::GlobalScope; use dom::servoparser::ServoParser; use dom::window::Window; @@ -41,8 +40,8 @@ impl DOMParser { DOMParserBinding::Wrap) } - pub fn Constructor(global: &GlobalScope) -> Fallible<Root<DOMParser>> { - Ok(DOMParser::new(global.as_window())) + pub fn Constructor(window: &Window) -> Fallible<Root<DOMParser>> { + Ok(DOMParser::new(window)) } } |