From e7149f15d72f7cf0cb93a9c276a79acd8787890a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 30 Oct 2017 19:28:11 +0100 Subject: [PATCH] style: Inline DomDescendants. MozReview-Commit-ID: HeBxicDHlzt --- components/style/dom.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/style/dom.rs b/components/style/dom.rs index 728f8f9aafa..b1a12307311 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -122,6 +122,7 @@ where { type Item = N; + #[inline] fn next(&mut self) -> Option { 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) -> Option { if let Some(c) = self.first_child() { return Some(c);