diff options
author | Connor Brewster <brewsterc@my.caspercollege.edu> | 2016-05-05 22:45:08 -0600 |
---|---|---|
committer | Connor Brewster <brewsterc@my.caspercollege.edu> | 2016-05-11 12:46:59 -0600 |
commit | cbc5ca65a8fed0542a74b8917b5d8d6450714478 (patch) | |
tree | 6e72f1dddbe6a1a69d92720e2e13615818f52fd6 /components/script/dom/htmliframeelement.rs | |
parent | 392135bd0c2f512a0d632a7d76e667bc9af8f4a7 (diff) | |
download | servo-cbc5ca65a8fed0542a74b8917b5d8d6450714478.tar.gz servo-cbc5ca65a8fed0542a74b8917b5d8d6450714478.zip |
remove page and move functionality to browing context
Allow for adding history items
Fixed nested iframe test failure
Cleanup and small refactors
fixup
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 42f5a8e17e7..59dc8673418 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -36,7 +36,6 @@ use layout_interface::ReflowQueryType; use msg::constellation_msg::{ConstellationChan, LoadData}; use msg::constellation_msg::{NavigationDirection, PipelineId, SubpageId}; use net_traits::response::HttpsState; -use page::IterablePage; use script_traits::IFrameSandboxState::{IFrameSandboxed, IFrameUnsandboxed}; use script_traits::{IFrameLoadInfo, MozBrowserEvent, ScriptMsg as ConstellationMsg}; use std::ascii::AsciiExt; @@ -418,11 +417,8 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement { self.subpage_id.get().and_then(|subpage_id| { let window = window_from_node(self); let window = window.r(); - let children = window.page().children.borrow(); - children.iter().find(|page| { - let window = page.window(); - window.subpage() == Some(subpage_id) - }).map(|page| page.window()) + let browsing_context = window.browsing_context(); + browsing_context.find_child_by_subpage(subpage_id) }) } |