diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-05-25 09:23:57 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-05-27 15:33:04 +0200 |
commit | e94f3d4fe056a12d561fbdee7e0af26ba738389c (patch) | |
tree | 7a776c66cd0776977399a7019fee3e5f41d29fae /components/script/dom/document.rs | |
parent | 2f9796fa696e9514280777398467696dd4f004b3 (diff) | |
download | servo-e94f3d4fe056a12d561fbdee7e0af26ba738389c.tar.gz servo-e94f3d4fe056a12d561fbdee7e0af26ba738389c.zip |
Remove the LayoutChan type.
It is a pointless abstraction.
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 00dec5d995f..2ceffe97b21 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -92,7 +92,7 @@ use html5ever::tree_builder::{LimitedQuirks, NoQuirks, Quirks, QuirksMode}; use ipc_channel::ipc::{self, IpcSender}; use js::jsapi::JS_GetRuntime; use js::jsapi::{JSContext, JSObject, JSRuntime}; -use layout_interface::{LayoutChan, Msg, ReflowQueryType}; +use layout_interface::{Msg, ReflowQueryType}; use msg::constellation_msg::{ALT, CONTROL, SHIFT, SUPER}; use msg::constellation_msg::{Key, KeyModifiers, KeyState}; use msg::constellation_msg::{PipelineId, ReferrerPolicy, SubpageId}; @@ -404,8 +404,7 @@ impl Document { self.quirks_mode.set(mode); if mode == Quirks { - let LayoutChan(ref layout_chan) = *self.window.layout_chan(); - layout_chan.send(Msg::SetQuirksMode).unwrap(); + self.window.layout_chan().send(Msg::SetQuirksMode).unwrap(); } } |