File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,19 @@ namespace Sass {
32
32
Selector_List* ss = 0 ;
33
33
if (p) {
34
34
ss = new (ctx.mem ) Selector_List (s->pstate (), p->length () * s->length ());
35
+ if (s->length () == 0 ) {
36
+ Complex_Selector* comb = static_cast <Complex_Selector*>(parent->perform (this ));
37
+ if (parent->has_line_feed ()) comb->has_line_feed (true );
38
+ if (comb) *ss << comb;
39
+ else cerr << " Warning: contextualize returned null" << endl;
40
+ }
35
41
for (size_t i = 0 , L = p->length (); i < L; ++i) {
36
42
for (size_t j = 0 , L = s->length (); j < L; ++j) {
37
43
parent = (*p)[i];
38
44
Complex_Selector* comb = static_cast <Complex_Selector*>((*s)[j]->perform (this ));
39
45
if (parent->has_line_feed ()) comb->has_line_feed (true );
40
46
if (comb) *ss << comb;
47
+ else cerr << " Warning: contextualize returned null" << endl;
41
48
}
42
49
}
43
50
}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ namespace Sass {
64
64
// the value might be interpolated; evaluate it
65
65
String* v = s->value ();
66
66
if (v && eval) {
67
- Eval* eval_with = eval->with (env, backtrace);
67
+ Eval* eval_with = eval->with (parent, env, backtrace);
68
68
v = static_cast <String*>(v->perform (eval_with));
69
69
}
70
70
To_String toString;
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ namespace Sass {
54
54
}
55
55
56
56
Contextualize_Eval* contextual = contextualize_eval->with (selector_stack.back (), env, backtrace);
57
- if (old_in_at_root && !r->selector ()->has_reference ())
58
- contextual = contextualize_eval->with (at_root_selector_stack .back (), env, backtrace);
57
+ // if (old_in_at_root && !r->selector()->has_reference())
58
+ // contextual = contextualize_eval->with(selector_stack .back(), env, backtrace);
59
59
60
60
Selector* sel_ctx = r->selector ()->perform (contextual);
61
61
if (sel_ctx == 0 ) throw " Cannot expand null selector" ;
You can’t perform that action at this time.
0 commit comments