File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1880,12 +1880,8 @@ namespace Sass {
1880
1880
BUILT_IN (is_superselector)
1881
1881
{
1882
1882
To_String to_string (&ctx, false );
1883
- Expression* ex_sup = ARG (" $super" , Expression);
1884
- Expression* ex_sub = ARG (" $sub" , Expression);
1885
- std::string sup_src = ex_sup->perform (&to_string) + " {" ;
1886
- std::string sub_src = ex_sub->perform (&to_string) + " {" ;
1887
- Selector_List* sel_sup = Parser::parse_selector (sup_src.c_str (), ctx);
1888
- Selector_List* sel_sub = Parser::parse_selector (sub_src.c_str (), ctx);
1883
+ Selector_List* sel_sup = ARGSEL (" $super" , Selector_List, p_contextualize);
1884
+ Selector_List* sel_sub = ARGSEL (" $sub" , Selector_List, p_contextualize);
1889
1885
bool result = sel_sup->is_superselector_of (sel_sub);
1890
1886
return SASS_MEMORY_NEW (ctx.mem , Boolean, pstate, result);
1891
1887
}
You can’t perform that action at this time.
0 commit comments