mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Inline DomDescendants.
MozReview-Commit-ID: HeBxicDHlzt Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
f32f09656b
commit
c414e90b20
1 changed files with 2 additions and 0 deletions
|
@ -122,6 +122,7 @@ where
|
|||
{
|
||||
type Item = N;
|
||||
|
||||
#[inline]
|
||||
fn next(&mut self) -> Option<N> {
|
||||
let prev = match self.previous.take() {
|
||||
None => return None,
|
||||
|
@ -205,6 +206,7 @@ pub trait TNode : Sized + Copy + Clone + Debug + NodeInfo + PartialEq {
|
|||
|
||||
/// Returns the next children in pre-order, optionally scoped to a subtree
|
||||
/// root.
|
||||
#[inline]
|
||||
fn next_in_preorder(&self, scoped_to: Option<Self>) -> Option<Self> {
|
||||
if let Some(c) = self.first_child() {
|
||||
return Some(c);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue