mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Simplify ThreadSafeLayoutNodeChildrenIterator::next a bit.
This commit is contained in:
parent
51d0f51dd9
commit
8375e0914a
1 changed files with 5 additions and 5 deletions
|
@ -1012,15 +1012,15 @@ impl<'a> Iterator for ThreadSafeLayoutNodeChildrenIterator<'a> {
|
|||
|
||||
match self.parent_node {
|
||||
Some(ref parent_node) => {
|
||||
if parent_node.pseudo == PseudoElementType::Normal {
|
||||
self.current_node = self.current_node.clone().and_then(|node| {
|
||||
self.current_node = if parent_node.pseudo == PseudoElementType::Normal {
|
||||
self.current_node.clone().and_then(|node| {
|
||||
unsafe {
|
||||
node.next_sibling()
|
||||
}
|
||||
});
|
||||
})
|
||||
} else {
|
||||
self.current_node = None;
|
||||
}
|
||||
None
|
||||
};
|
||||
}
|
||||
None => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue