From aca724ec79cd1393987a8fa83215ae44f1be532b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 26 Jun 2018 00:25:58 +0200 Subject: [PATCH] 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 --- components/selectors/matching.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/selectors/matching.rs b/components/selectors/matching.rs index c3591ff2727..7c4812cb963 100644 --- a/components/selectors/matching.rs +++ b/components/selectors/matching.rs @@ -576,7 +576,7 @@ where _ => {}, } - if element.is_link() || combinator.is_sibling() { + if element.is_link() { visited_handling = VisitedHandlingMode::AllLinksUnvisited; }