From 710184b6705dbee66359bfc5732d02c50cacf0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 4 Jun 2018 21:48:43 +0200 Subject: [PATCH] style: Sprinkle some #[inline] on methods that have inline fast-paths. MozReview-Commit-ID: 5kOmctLTAX0 --- components/style/gecko/wrapper.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index f85bffaaac6..96f20fd90ab 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -1356,6 +1356,7 @@ impl<'le> TElement for GeckoElement<'le> { !self.is_in_native_anonymous_subtree() } + #[inline] fn implemented_pseudo_element(&self) -> Option { if !self.is_in_native_anonymous_subtree() { return None; @@ -1369,6 +1370,7 @@ impl<'le> TElement for GeckoElement<'le> { PseudoElement::from_pseudo_type(pseudo_type) } + #[inline] fn store_children_to_process(&self, _: isize) { // This is only used for bottom-up traversal, and is thus a no-op for Gecko. }