aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/context.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/selectors/context.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/selectors/context.rs')
-rw-r--r--components/selectors/context.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/components/selectors/context.rs b/components/selectors/context.rs
index f595389d2f2..9146b133e38 100644
--- a/components/selectors/context.rs
+++ b/components/selectors/context.rs
@@ -68,14 +68,6 @@ impl VisitedHandlingMode {
}
}
-/// Whether we need to set selector invalidation flags on elements for this
-/// match request.
-#[derive(Clone, Copy, Debug, PartialEq)]
-pub enum NeedsSelectorFlags {
- No,
- Yes,
-}
-
/// Which quirks mode is this document in.
///
/// See: https://quirks.spec.whatwg.org/
@@ -148,7 +140,6 @@ where
pub extra_data: Impl::ExtraMatchingData,
quirks_mode: QuirksMode,
- needs_selector_flags: NeedsSelectorFlags,
classes_and_ids_case_sensitivity: CaseSensitivity,
_impl: ::std::marker::PhantomData<Impl>,
}
@@ -163,7 +154,6 @@ where
bloom_filter: Option<&'a BloomFilter>,
nth_index_cache: Option<&'a mut NthIndexCache>,
quirks_mode: QuirksMode,
- needs_selector_flags: NeedsSelectorFlags,
) -> Self {
Self::new_for_visited(
matching_mode,
@@ -171,7 +161,6 @@ where
nth_index_cache,
VisitedHandlingMode::AllLinksUnvisited,
quirks_mode,
- needs_selector_flags,
)
}
@@ -182,7 +171,6 @@ where
nth_index_cache: Option<&'a mut NthIndexCache>,
visited_handling: VisitedHandlingMode,
quirks_mode: QuirksMode,
- needs_selector_flags: NeedsSelectorFlags,
) -> Self {
Self {
matching_mode,
@@ -191,7 +179,6 @@ where
nth_index_cache,
quirks_mode,
classes_and_ids_case_sensitivity: quirks_mode.classes_and_ids_case_sensitivity(),
- needs_selector_flags,
scope_element: None,
current_host: None,
nesting_level: 0,
@@ -226,12 +213,6 @@ where
self.matching_mode
}
- /// Whether we need to set selector flags.
- #[inline]
- pub fn needs_selector_flags(&self) -> bool {
- self.needs_selector_flags == NeedsSelectorFlags::Yes
- }
-
/// The case-sensitivity for class and ID selectors
#[inline]
pub fn classes_and_ids_case_sensitivity(&self) -> CaseSensitivity {