mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Cleanup Vec
initialization from Option
.
This commit is contained in:
parent
0112c359f5
commit
f5697b1c39
1 changed files with 1 additions and 5 deletions
|
@ -471,12 +471,8 @@ impl<LTF: LayoutThreadFactory, STF: ScriptThreadFactory> Constellation<LTF, STF>
|
|||
// Get an iterator for the current frame tree. Specify self.root_frame_id to
|
||||
// iterate the entire tree, or a specific frame id to iterate only that sub-tree.
|
||||
fn current_frame_tree_iter(&self, frame_id_root: Option<FrameId>) -> FrameTreeIterator {
|
||||
let mut stack = vec!();
|
||||
if let Some(frame_id_root) = frame_id_root {
|
||||
stack.push(frame_id_root);
|
||||
}
|
||||
FrameTreeIterator {
|
||||
stack: stack,
|
||||
stack: frame_id_root.into_iter().collect(),
|
||||
pipelines: &self.pipelines,
|
||||
frames: &self.frames,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue