Module matching

Source

Re-exportsยง

pub use crate::context::*;

Structsยง

ElementSelectorFlags
Set of flags that are set on either the element or its parent (depending on the flag) if the element could potentially match a selector.
LocalMatchingContext ๐Ÿ”’
Holds per-compound-selector data.
NextElement ๐Ÿ”’

Enumsยง

CompoundSelectorMatchingResult
Whether a compound selector matched, and whether it was the rightmost selector inside the complex selector.
SelectorMatchingResult ๐Ÿ”’
A result of selector matching, includes 3 failure types,
SubjectOrPseudoElement ๐Ÿ”’

Staticsยง

RECOMMENDED_SELECTOR_BLOOM_FILTER_SIZE

Functionsยง

assigned_slot ๐Ÿ”’
compound_matches_featureless_host ๐Ÿ”’
There are relatively few selectors in a given compound that may match a featureless element. Instead of adding a check to every selector that may not match, we handle it here in an out of line path.
do_match_relative_selectors ๐Ÿ”’
Matches a relative selector in a list of relative selectors.
host_for_part ๐Ÿ”’
hover_and_active_quirk_applies ๐Ÿ”’
Whether the :hover and :active quirk applies.
match_relative_selectors ๐Ÿ”’
matches_complex_selector ๐Ÿ”’
Matches a complex selector.
matches_complex_selector_internal ๐Ÿ”’
matches_complex_selector_list ๐Ÿ”’
Matches each selector of a list as a complex selector
matches_compound_selector ๐Ÿ”’
Determines whether the given element matches the given compound selector.
matches_compound_selector_from
Matches a compound selector belonging to selector, starting at offset from_offset, matching left to right.
matches_generic_nth_child ๐Ÿ”’
matches_host ๐Ÿ”’
matches_local_name ๐Ÿ”’
matches_part ๐Ÿ”’
matches_rare_attribute_selector ๐Ÿ”’
matches_relative_selector ๐Ÿ”’
matches_relative_selector_subtree ๐Ÿ”’
matches_selector
Matches a selector, fast-rejecting against a bloom filter.
matches_selector_kleene
Same as matches_selector, but returns the Kleene value as-is.
matches_selector_list
matches_simple_selector ๐Ÿ”’
Determines whether the given element matches the given single selector.
matches_slotted ๐Ÿ”’
next_element_for_combinator ๐Ÿ”’
nth_child_index ๐Ÿ”’
relative_selector_match_early ๐Ÿ”’
select_name
selector_may_match
Given the ancestor hashes from a selector, see if the current element, represented by the bloom filter, has a chance of matching at all.
to_unconditional_case_sensitivity