mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
style: Inline DomDescendants.
MozReview-Commit-ID: HeBxicDHlzt
This commit is contained in:
parent
bfabd9f855
commit
e7149f15d7
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