aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/document.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index ce1abc1cd89..a414f782012 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -481,7 +481,7 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
if focus_type == FocusType::Element {
let window = self.window.root();
let ConstellationChan(ref chan) = window.r().constellation_chan();
- let event = ConstellationMsg::FocusMsg(window.r().pipeline());
+ let event = ConstellationMsg::Focus(window.r().pipeline());
chan.send(event).unwrap();
}
}
@@ -769,9 +769,9 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
if let Some((containing_pipeline_id, subpage_id)) = window.r().parent_info() {
let ConstellationChan(ref chan) = window.r().constellation_chan();
- let event = ConstellationMsg::MozBrowserEventMsg(containing_pipeline_id,
- subpage_id,
- event);
+ let event = ConstellationMsg::MozBrowserEvent(containing_pipeline_id,
+ subpage_id,
+ event);
chan.send(event).unwrap();
}
}