diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /servo/components/style/invalidation/element | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'servo/components/style/invalidation/element')
3 files changed, 10 insertions, 5 deletions
diff --git a/servo/components/style/invalidation/element/document_state.rs b/servo/components/style/invalidation/element/document_state.rs index 0b846510d8..5437943066 100644 --- a/servo/components/style/invalidation/element/document_state.rs +++ b/servo/components/style/invalidation/element/document_state.rs @@ -14,8 +14,8 @@ use crate::invalidation::element::state_and_attributes; use crate::stylist::CascadeData; use dom::DocumentState; use selectors::matching::{ - MatchingContext, MatchingForInvalidation, MatchingMode, NeedsSelectorFlags, QuirksMode, - SelectorCaches, VisitedHandlingMode, + IncludeStartingStyle, MatchingContext, MatchingForInvalidation, MatchingMode, + NeedsSelectorFlags, QuirksMode, SelectorCaches, VisitedHandlingMode, }; /// A struct holding the members necessary to invalidate document state @@ -59,6 +59,7 @@ impl<'a, 'b, E: TElement, I> DocumentStateInvalidationProcessor<'a, 'b, E, I> { None, selector_caches, VisitedHandlingMode::AllLinksVisitedAndUnvisited, + IncludeStartingStyle::No, quirks_mode, NeedsSelectorFlags::No, MatchingForInvalidation::No, diff --git a/servo/components/style/invalidation/element/relative_selector.rs b/servo/components/style/invalidation/element/relative_selector.rs index 41222304be..d57676905b 100644 --- a/servo/components/style/invalidation/element/relative_selector.rs +++ b/servo/components/style/invalidation/element/relative_selector.rs @@ -26,8 +26,8 @@ use dom::ElementState; use fxhash::FxHashMap; use selectors::matching::{ matches_compound_selector_from, matches_selector, CompoundSelectorMatchingResult, - ElementSelectorFlags, MatchingContext, MatchingForInvalidation, MatchingMode, - NeedsSelectorFlags, QuirksMode, SelectorCaches, VisitedHandlingMode, + ElementSelectorFlags, IncludeStartingStyle, MatchingContext, MatchingForInvalidation, + MatchingMode, NeedsSelectorFlags, QuirksMode, SelectorCaches, VisitedHandlingMode, }; use selectors::parser::{Combinator, SelectorKey}; use selectors::OpaqueElement; @@ -822,6 +822,7 @@ where None, &mut selector_caches, VisitedHandlingMode::AllLinksVisitedAndUnvisited, + IncludeStartingStyle::No, self.quirks_mode, NeedsSelectorFlags::No, MatchingForInvalidation::Yes, @@ -1032,6 +1033,7 @@ where None, selector_caches, VisitedHandlingMode::AllLinksVisitedAndUnvisited, + IncludeStartingStyle::No, quirks_mode, NeedsSelectorFlags::No, MatchingForInvalidation::Yes, diff --git a/servo/components/style/invalidation/element/state_and_attributes.rs b/servo/components/style/invalidation/element/state_and_attributes.rs index d5f0723d66..ffb2302b55 100644 --- a/servo/components/style/invalidation/element/state_and_attributes.rs +++ b/servo/components/style/invalidation/element/state_and_attributes.rs @@ -24,7 +24,8 @@ use dom::ElementState; use selectors::attr::CaseSensitivity; use selectors::kleene_value::KleeneValue; use selectors::matching::{ - matches_selector_kleene, MatchingContext, MatchingForInvalidation, MatchingMode, NeedsSelectorFlags, SelectorCaches, VisitedHandlingMode + matches_selector_kleene, IncludeStartingStyle, MatchingContext, MatchingForInvalidation, + MatchingMode, NeedsSelectorFlags, SelectorCaches, VisitedHandlingMode }; use smallvec::SmallVec; @@ -73,6 +74,7 @@ impl<'a, 'b: 'a, E: TElement + 'b> StateAndAttrInvalidationProcessor<'a, 'b, E> None, selector_caches, VisitedHandlingMode::AllLinksVisitedAndUnvisited, + IncludeStartingStyle::No, shared_context.quirks_mode(), NeedsSelectorFlags::No, MatchingForInvalidation::Yes, |