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

@ -203,7 +203,7 @@ pub enum Msg {
LoadComplete,
FrameRect(PipelineId, SubpageId, Rect<f32>),
LoadUrl(PipelineId, LoadData),
ScriptLoadedURLInIFrame(Url, PipelineId, SubpageId, IFrameSandboxState),
ScriptLoadedURLInIFrame(Url, PipelineId, SubpageId, Option<SubpageId>, IFrameSandboxState),
Navigate(NavigationDirection),
PainterReady(PipelineId),
ResizedWindow(WindowSizeData),