From dc3d4ba2e01adb9c2ca699cd466c90bf8caa3a32 Mon Sep 17 00:00:00 2001 From: toge Date: Mon, 25 Dec 2023 00:32:59 +0900 Subject: [PATCH] rename inner selector in seletor to subselector --- source/parser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/parser.cpp b/source/parser.cpp index 714228b..3ade738 100644 --- a/source/parser.cpp +++ b/source/parser.cpp @@ -1226,8 +1226,8 @@ bool RuleData::matchPseudoClassSelector(const PseudoClassSelector& selector, con return element->parent == nullptr; if(selector.type == PseudoClassSelector::Type::Is) { - for(auto& selector : selector.subSelectors) { - for(auto& sel : selector) { + for(auto& subselector : selector.subSelectors) { + for(auto& sel : subselector) { if(!matchSimpleSelector(sel, element)) { return false; } @@ -1238,8 +1238,8 @@ bool RuleData::matchPseudoClassSelector(const PseudoClassSelector& selector, con } if(selector.type == PseudoClassSelector::Type::Not) { - for(auto& selector : selector.subSelectors) { - for(auto& sel : selector) { + for(auto& subselector : selector.subSelectors) { + for(auto& sel : subselector) { if(matchSimpleSelector(sel, element)) { return false; }