diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-01-19 23:05:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 23:05:18 -0600 |
commit | 6fc71a7644bd7afcccf83f67cfdaf01897e1a3bc (patch) | |
tree | 340a0cfcbb9065a62c57490786e2754f50db6518 /components/selectors/context.rs | |
parent | 3b07be555310a3a31445fae1150720cc3ff7d5d5 (diff) | |
parent | be4c0fecd8f997823850e3968a58e688bb8397bb (diff) | |
download | servo-6fc71a7644bd7afcccf83f67cfdaf01897e1a3bc.tar.gz servo-6fc71a7644bd7afcccf83f67cfdaf01897e1a3bc.zip |
Auto merge of #19822 - emilio:less-match-public, r=KiChjang
style: More tiny selector-matching cleanup
See each commit individually.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19822)
<!-- Reviewable:end -->
Diffstat (limited to 'components/selectors/context.rs')
-rw-r--r-- | components/selectors/context.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/components/selectors/context.rs b/components/selectors/context.rs index f61823a626d..257a29afc44 100644 --- a/components/selectors/context.rs +++ b/components/selectors/context.rs @@ -100,7 +100,7 @@ where Impl: SelectorImpl, { /// Input with the matching mode we should use when matching selectors. - pub matching_mode: MatchingMode, + matching_mode: MatchingMode, /// Input with the bloom filter used to fast-reject selectors. pub bloom_filter: Option<&'a BloomFilter>, /// An optional cache to speed up nth-index-like selectors. @@ -204,6 +204,12 @@ where self.quirks_mode } + /// The matching-mode for this selector-matching operation. + #[inline] + pub fn matching_mode(&self) -> MatchingMode { + self.matching_mode + } + /// The case-sensitivity for class and ID selectors #[inline] pub fn classes_and_ids_case_sensitivity(&self) -> CaseSensitivity { |