aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-04-14 14:10:11 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-04-14 14:10:11 +0530
commit11f4d3f35609552feded6de56cc95aaf73ccc699 (patch)
tree52b587867a8f6a431e5bb87256df2146f9f03c7c /components/script/dom
parent25ae04057cad391aeb0cf92e028bbe9adbbb4c25 (diff)
parent29e268b659b6e577a02b7881b5ba5ec158189f09 (diff)
downloadservo-11f4d3f35609552feded6de56cc95aaf73ccc699.tar.gz
servo-11f4d3f35609552feded6de56cc95aaf73ccc699.zip
Auto merge of #10594 - sliz1:10576, r=Ms2ger
Remove containing_page_pipeline_id Fixes https://github.com/servo/servo/issues/10569 <!-- 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/10594) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/htmliframeelement.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 7273e063e0b..56ad1d3df39 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -66,7 +66,6 @@ pub struct HTMLIFrameElement {
htmlelement: HTMLElement,
pipeline_id: Cell<Option<PipelineId>>,
subpage_id: Cell<Option<SubpageId>>,
- containing_page_pipeline_id: Cell<Option<PipelineId>>,
sandbox: Cell<Option<u8>>,
load_blocker: DOMRefCell<Option<LoadBlocker>>,
}
@@ -126,8 +125,6 @@ impl HTMLIFrameElement {
let new_pipeline_id = self.pipeline_id.get().unwrap();
let private_iframe = self.privatebrowsing();
- self.containing_page_pipeline_id.set(Some(window.pipeline()));
-
let ConstellationChan(ref chan) = window.constellation_chan();
let load_info = IFrameLoadInfo {
url: url,
@@ -192,7 +189,6 @@ impl HTMLIFrameElement {
htmlelement: HTMLElement::new_inherited(localName, prefix, document),
pipeline_id: Cell::new(None),
subpage_id: Cell::new(None),
- containing_page_pipeline_id: Cell::new(None),
sandbox: Cell::new(None),
load_blocker: DOMRefCell::new(None),
}
@@ -207,11 +203,6 @@ impl HTMLIFrameElement {
}
#[inline]
- pub fn containing_page_pipeline_id(&self) -> Option<PipelineId> {
- self.containing_page_pipeline_id.get()
- }
-
- #[inline]
pub fn pipeline_id(&self) -> Option<PipelineId> {
self.pipeline_id.get()
}
@@ -373,7 +364,7 @@ pub fn Navigate(iframe: &HTMLIFrameElement, direction: NavigationDirection) -> E
let window = window_from_node(iframe);
let window = window.r();
- let pipeline_info = Some((iframe.containing_page_pipeline_id().unwrap(),
+ let pipeline_info = Some((window.pipeline(),
iframe.subpage_id().unwrap()));
let ConstellationChan(ref chan) = window.constellation_chan();
let msg = ConstellationMsg::Navigate(pipeline_info, direction);