Update FrameTree pipelines when appropriate

Instead of simply creating a new FrameTree when an iframe starts a
load, update the existing FrameTree's pipeline. This prevents the
FrameTree from accumulating many extra children.
This commit is contained in:
Martin Robinson 2014-11-11 08:20:37 -08:00
parent c1d218cf02
commit 6a46eef5cd
4 changed files with 126 additions and 95 deletions

View file

@ -144,8 +144,8 @@ pub trait TLayoutNode {
Some(elem) => elem,
None => panic!("not an iframe element!")
};
let size = (*iframe_element.unsafe_get()).size().unwrap();
(*size.pipeline_id(), *size.subpage_id())
((*iframe_element.unsafe_get()).containing_page_pipeline_id().unwrap(),
(*iframe_element.unsafe_get()).subpage_id().unwrap())
}
}