mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Remove unneeded combinator check in selector-matching.
The combinator doesn't change during the loop, no need to check it. Bug: 1471063 Reviewed-by: xidorn MozReview-Commit-ID: KIAt0WiEOtI
This commit is contained in:
parent
2274f392d8
commit
aca724ec79
1 changed files with 1 additions and 1 deletions
|
@ -576,7 +576,7 @@ where
|
|||
_ => {},
|
||||
}
|
||||
|
||||
if element.is_link() || combinator.is_sibling() {
|
||||
if element.is_link() {
|
||||
visited_handling = VisitedHandlingMode::AllLinksUnvisited;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue