diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-09-29 06:47:45 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-10-05 22:53:50 +0530 |
commit | 707a2870fa5a7c10dad49a8ab0db39c7e568f1c6 (patch) | |
tree | 17bb1de1bdfcb14d356f0e24c7ac55d72ae991aa /components/script/dom/htmliframeelement.rs | |
parent | 22567762a0d1a6f77f770b488f60adb14150843d (diff) | |
download | servo-707a2870fa5a7c10dad49a8ab0db39c7e568f1c6.tar.gz servo-707a2870fa5a7c10dad49a8ab0db39c7e568f1c6.zip |
Remove Traceable/Untraceable from page.rs
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index b6a617b9037..273e089d510 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -107,7 +107,7 @@ impl<'a> HTMLIFrameElementHelpers for JSRef<'a, HTMLIFrameElement> { subpage_id: subpage_id, })); - let ConstellationChan(ref chan) = *page.constellation_chan.deref(); + let ConstellationChan(ref chan) = page.constellation_chan; chan.send(LoadIframeUrlMsg(url, page.id, subpage_id, sandboxed)); } } @@ -152,12 +152,12 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> { fn GetContentWindow(self) -> Option<Temporary<Window>> { self.size.get().and_then(|size| { let window = window_from_node(self).root(); - let children = window.deref().page.children.deref().borrow(); + let children = window.deref().page.children.borrow(); let child = children.iter().find(|child| { child.subpage_id.unwrap() == size.subpage_id }); child.and_then(|page| { - page.frame.deref().borrow().as_ref().map(|frame| { + page.frame.borrow().as_ref().map(|frame| { Temporary::new(frame.window.clone()) }) }) |