mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Various fixes for cleaning up iframes, compositor layers, pipelines and threads.
This allows most of the jquery test suite to run without exhausting thread resources.
This commit is contained in:
parent
5e61ebaa05
commit
2b3737d34e
11 changed files with 191 additions and 14 deletions
|
@ -253,6 +253,11 @@ impl Pipeline {
|
|||
self.children.push(frame_id);
|
||||
}
|
||||
|
||||
pub fn remove_child(&mut self, frame_id: FrameId) {
|
||||
let index = self.children.iter().position(|id| *id == frame_id).unwrap();
|
||||
self.children.remove(index);
|
||||
}
|
||||
|
||||
pub fn trigger_mozbrowser_event(&self,
|
||||
subpage_id: SubpageId,
|
||||
event: MozBrowserEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue