aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorAneesh Agrawal <aneeshusa@gmail.com>2016-06-09 21:02:40 -0400
committerAneesh Agrawal <aneeshusa@gmail.com>2016-09-13 15:24:13 -0400
commitb9b25b6f82d838c7bb6f87b71d7726f7a58847d9 (patch)
treedacfcf40851847c658117f200699287237244bb4 /components/script/dom/document.rs
parent9d097e7d1570d68e5fe77ff01595cf14a3e2cc29 (diff)
downloadservo-b9b25b6f82d838c7bb6f87b71d7726f7a58847d9.tar.gz
servo-b9b25b6f82d838c7bb6f87b71d7726f7a58847d9.zip
Consistently use parent_pipeline_id
Instead of containing_pipeline_id, use parent_pipeline_id because it is more clear that it refers to the immediate parent.
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index fd4bb67370b..a43194783a0 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -1342,8 +1342,8 @@ impl Document {
pub fn trigger_mozbrowser_event(&self, event: MozBrowserEvent) {
if PREFS.is_mozbrowser_enabled() {
- if let Some((containing_pipeline_id, subpage_id, _)) = self.window.parent_info() {
- let event = ConstellationMsg::MozBrowserEvent(containing_pipeline_id,
+ if let Some((parent_pipeline_id, subpage_id, _)) = self.window.parent_info() {
+ let event = ConstellationMsg::MozBrowserEvent(parent_pipeline_id,
Some(subpage_id),
event);
self.window.constellation_chan().send(event).unwrap();