mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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 -->
This commit is contained in:
commit
6fc71a7644
4 changed files with 47 additions and 36 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue