diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-07-11 16:29:49 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-07-12 09:26:55 +0200 |
commit | 6d6c80e79b9e62b38557125f509158a5fca75253 (patch) | |
tree | 61e35a30b550f2d635f441c76b82183e16640b07 /components/selectors/context.rs | |
parent | d3c88445495f8fd6b3d11fb1fda9640a1d924067 (diff) | |
download | servo-6d6c80e79b9e62b38557125f509158a5fca75253.tar.gz servo-6d6c80e79b9e62b38557125f509158a5fca75253.zip |
style: Remove StyleRelations.
They're unused now. We can add them back if needed.
MozReview-Commit-ID: 92Y2Na0ZbVn
Diffstat (limited to 'components/selectors/context.rs')
-rw-r--r-- | components/selectors/context.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/components/selectors/context.rs b/components/selectors/context.rs index e27cd6811bb..6cf516b74fc 100644 --- a/components/selectors/context.rs +++ b/components/selectors/context.rs @@ -5,19 +5,6 @@ use attr::CaseSensitivity; use bloom::BloomFilter; -bitflags! { - /// Set of flags that determine the different kind of elements affected by - /// the selector matching process. - /// - /// This is used to implement efficient sharing. - #[derive(Default)] - pub flags StyleRelations: usize { - /// Whether this element is affected by presentational hints. This is - /// computed externally (that is, in Servo). - const AFFECTED_BY_PRESENTATIONAL_HINTS = 1 << 0, - } -} - /// What kind of selector matching mode we should use. /// /// There are two modes of selector matching. The difference is only noticeable @@ -87,9 +74,6 @@ impl QuirksMode { /// transient data that applies to only a single selector. #[derive(Clone)] pub struct MatchingContext<'a> { - /// Output that records certains relations between elements noticed during - /// matching (and also extended after matching). - pub relations: StyleRelations, /// Input with the matching mode we should use when matching selectors. pub matching_mode: MatchingMode, /// Input with the bloom filter used to fast-reject selectors. @@ -114,7 +98,6 @@ impl<'a> MatchingContext<'a> { -> Self { Self { - relations: StyleRelations::empty(), matching_mode: matching_mode, bloom_filter: bloom_filter, visited_handling: VisitedHandlingMode::AllLinksUnvisited, @@ -132,7 +115,6 @@ impl<'a> MatchingContext<'a> { -> Self { Self { - relations: StyleRelations::empty(), matching_mode: matching_mode, bloom_filter: bloom_filter, visited_handling: visited_handling, |