mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove unsound Root::deref() call in Document::set_quirks_mode.
This commit is contained in:
parent
eb715a7bf8
commit
ca9b5353d8
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue