mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Log element during selector matching
MozReview-Commit-ID: D8eFyRCy5BR
This commit is contained in:
parent
eaefcbe551
commit
6b1b8bbee8
8 changed files with 35 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue