From b9e38017e75e0431e82fdbcf39b882b26dfc9b2f Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Tue, 31 Oct 2023 23:19:51 +0100 Subject: [PATCH] Further changes required by Servo --- components/style/servo/selector_parser.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index 5ee3d91ee95..db3b43e6cf2 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -23,6 +23,7 @@ use fxhash::FxHashMap; use selectors::attr::{AttrSelectorOperation, CaseSensitivity, NamespaceConstraint}; use selectors::parser::SelectorParseErrorKind; use selectors::visitor::SelectorVisitor; +use servo_arc::Arc; use std::fmt; use std::mem; use std::ops::{Deref, DerefMut}; @@ -417,6 +418,10 @@ pub struct ExtraMatchingData { /// The invalidation bits from matching container queries. These are here /// just for convenience mostly. pub cascade_input_flags: ComputedValueFlags, + + /// The style of the originating element in order to evaluate @container + /// size queries affecting pseudo-elements. + pub originating_element_style: Option>, } impl ::selectors::SelectorImpl for SelectorImpl {