aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/sharing/checks.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-08-16 08:24:42 +0200
committerGitHub <noreply@github.com>2023-08-16 06:24:42 +0000
commitd6ae8dc112deb479f345c94970dde442332c8c27 (patch)
tree0d0f19804d9ee17d5e51b7285fed739a65390a71 /components/style/sharing/checks.rs
parent8e15389caedd9b8e1b87cc9e4bfe8350a581546d (diff)
downloadservo-d6ae8dc112deb479f345c94970dde442332c8c27.tar.gz
servo-d6ae8dc112deb479f345c94970dde442332c8c27.zip
Revert "Backport several style changes from Gecko (5) (#30099)" (#30104)
This reverts commit 8e15389caedd9b8e1b87cc9e4bfe8350a581546d.
Diffstat (limited to 'components/style/sharing/checks.rs')
-rw-r--r--components/style/sharing/checks.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/style/sharing/checks.rs b/components/style/sharing/checks.rs
index 2f8f410190f..5e8350e78d3 100644
--- a/components/style/sharing/checks.rs
+++ b/components/style/sharing/checks.rs
@@ -7,7 +7,7 @@
//! elements can indeed share the same style.
use crate::bloom::StyleBloom;
-use crate::context::SharedStyleContext;
+use crate::context::{SelectorFlagsMap, SharedStyleContext};
use crate::dom::TElement;
use crate::sharing::{StyleSharingCandidate, StyleSharingTarget};
use selectors::NthIndexCache;
@@ -120,6 +120,7 @@ pub fn revalidate<E>(
shared_context: &SharedStyleContext,
bloom: &StyleBloom<E>,
nth_index_cache: &mut NthIndexCache,
+ selector_flags_map: &mut SelectorFlagsMap<E>,
) -> bool
where
E: TElement,
@@ -127,7 +128,7 @@ where
let stylist = &shared_context.stylist;
let for_element =
- target.revalidation_match_results(stylist, bloom, nth_index_cache);
+ target.revalidation_match_results(stylist, bloom, nth_index_cache, selector_flags_map);
let for_candidate = candidate.revalidation_match_results(stylist, bloom, nth_index_cache);