From 9323a03ac381c5f1d6e5753e623ebc4b0a470874 Mon Sep 17 00:00:00 2001 From: David Shin Date: Thu, 5 Oct 2023 18:16:33 +0000 Subject: [PATCH] Bug 1854666: Force prevent inlining of some relative selector invalidation functions. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D188996 --- .../components/style/invalidation/element/relative_selector.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servo/components/style/invalidation/element/relative_selector.rs b/servo/components/style/invalidation/element/relative_selector.rs index 68b7169109e2..01d3f70ff7da 100644 --- a/servo/components/style/invalidation/element/relative_selector.rs +++ b/servo/components/style/invalidation/element/relative_selector.rs @@ -290,6 +290,7 @@ where E: TElement + 'a, { /// Gather relative selector dependencies for the given element, and invalidate as necessary. + #[inline(never)] pub fn invalidate_relative_selectors_for_this( self, stylist: &'a Stylist, @@ -324,6 +325,7 @@ where } /// Gather relative selector dependencies for the given element (And its subtree) that mutated, and invalidate as necessary. + #[inline(never)] pub fn invalidate_relative_selectors_for_dom_mutation( self, subtree: bool,