mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
c1d218cf02
commit
6a46eef5cd
4 changed files with 126 additions and 95 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue