aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servohtmlparser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/servohtmlparser.rs')
-rw-r--r--components/script/dom/servohtmlparser.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/servohtmlparser.rs b/components/script/dom/servohtmlparser.rs
index 30807adad02..d06a50c04c8 100644
--- a/components/script/dom/servohtmlparser.rs
+++ b/components/script/dom/servohtmlparser.rs
@@ -72,7 +72,8 @@ impl ServoHTMLParser {
tokenizer: DOMRefCell::new(tok),
};
- reflect_dom_object(box parser, GlobalRef::Window(*window), ServoHTMLParserBinding::Wrap)
+ reflect_dom_object(box parser, GlobalRef::Window(window.r()),
+ ServoHTMLParserBinding::Wrap)
}
#[inline]