aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-05-27 10:26:23 -0500
committerbors-servo <lbergstrom+bors@mozilla.com>2016-05-27 10:26:23 -0500
commitd160f8cb8037db0f4fa0b592d5f59162c1428494 (patch)
treee68a275d8ad7ac3b8c9e2e6ec8c9b421aa1e8ee7 /components/script/dom/document.rs
parent3ab5c075595f6bffe3062e26d91f4837fedbf19c (diff)
parente94f3d4fe056a12d561fbdee7e0af26ba738389c (diff)
downloadservo-d160f8cb8037db0f4fa0b592d5f59162c1428494.tar.gz
servo-d160f8cb8037db0f4fa0b592d5f59162c1428494.zip
Auto merge of #11463 - Ms2ger:LayoutChan, r=nox
Remove the LayoutChan type. <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because refactoring <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> It is a pointless abstraction. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11463) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs5
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();
}
}