diff options
Diffstat (limited to 'components/selectors/matching.rs')
-rw-r--r-- | components/selectors/matching.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/selectors/matching.rs b/components/selectors/matching.rs index 3c269427421..84ddde2b261 100644 --- a/components/selectors/matching.rs +++ b/components/selectors/matching.rs @@ -198,7 +198,7 @@ fn may_match<E>(hashes: &AncestorHashes, /// and `is_unvisited` are based on relevant link state of only the current /// complex selector being matched (not the global relevant link status for all /// selectors in `MatchingContext`). -#[derive(PartialEq, Eq, Copy, Clone)] +#[derive(PartialEq, Eq, Copy, Clone, Debug)] pub enum RelevantLinkStatus { /// Looking for a possible relevant link. This is the initial mode when /// matching a selector. @@ -429,6 +429,9 @@ fn matches_complex_selector_internal<E, F>(mut selector_iter: SelectorIter<E::Im matches_simple_selector(simple, element, context, &relevant_link, flags_setter) }); + debug!("Matching for {:?}, simple selector {:?}, relevant link {:?}", + element, selector_iter, relevant_link); + let combinator = selector_iter.next_sequence(); let siblings = combinator.map_or(false, |c| c.is_sibling()); if siblings { |