Skip to content

Commit 4254054

Browse files
committed
Fix explosion of parent selectors in selector-nest
1 parent 95011cd commit 4254054

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/ast.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,12 +1263,8 @@ namespace Sass {
12631263
{
12641264
if (!this->has_parent_ref()) return this;
12651265
Selector_List_Ptr ss = SASS_MEMORY_NEW(Selector_List, pstate());
1266-
Selector_List_Ptr ps = pstack.back();
1267-
for (size_t pi = 0, pL = ps->length(); pi < pL; ++pi) {
1268-
for (size_t si = 0, sL = this->length(); si < sL; ++si) {
1269-
Selector_List_Obj rv = at(si)->resolve_parent_refs(pstack, traces, implicit_parent);
1270-
ss->concat(rv);
1271-
}
1266+
for (size_t si = 0, sL = this->length(); si < sL; ++si) {
1267+
ss->concat(at(si)->resolve_parent_refs(pstack, traces, implicit_parent));
12721268
}
12731269
return ss;
12741270
}

0 commit comments

Comments
 (0)