Remove unsound Root::deref() call in Document::set_quirks_mode.

This commit is contained in:
Ms2ger 2015-01-01 17:53:01 +01:00
parent eb715a7bf8
commit ca9b5353d8

View file

@ -220,6 +220,7 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
match mode {
Quirks => {
let window = self.window.root();
let window = window.r();
let LayoutChan(ref layout_chan) = window.page().layout_chan;
layout_chan.send(Msg::SetQuirksMode);
}