File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1329,7 +1329,7 @@ namespace Sass {
1329
1329
return ee;
1330
1330
}
1331
1331
1332
- Expression_Ptr Eval::operator ()(Media_Query_Ptr q)
1332
+ Media_Query_Ptr Eval::operator ()(Media_Query_Ptr q)
1333
1333
{
1334
1334
String_Obj t = q->media_type ();
1335
1335
t = static_cast <String_Ptr>(t.isNull () ? 0 : t->perform (this ));
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ namespace Sass {
59
59
Expression_Ptr operator ()(String_Quoted_Ptr);
60
60
Expression_Ptr operator ()(String_Constant_Ptr);
61
61
// Expression_Ptr operator()(Selector_List_Ptr);
62
- Expression_Ptr operator ()(Media_Query_Ptr);
62
+ Media_Query_Ptr operator ()(Media_Query_Ptr);
63
63
Expression_Ptr operator ()(Media_Query_Expression_Ptr);
64
64
Expression_Ptr operator ()(At_Root_Query_Ptr);
65
65
Expression_Ptr operator ()(Supports_Operator_Ptr);
Original file line number Diff line number Diff line change @@ -176,18 +176,19 @@ namespace Sass {
176
176
177
177
Statement_Ptr Expand::operator ()(Media_Block_Ptr m)
178
178
{
179
- media_block_stack. push_back (m );
180
- Expression_Obj mq = m->media_queries ()-> perform (&eval );
179
+ Media_Block_Ptr cpy = m-> copy ( );
180
+ Expression_Obj mq = eval ( m->media_queries ());
181
181
std::string str_mq (mq->to_string (ctx.c_options ));
182
182
char * str = sass_copy_c_string (str_mq.c_str ());
183
183
ctx.strings .push_back (str);
184
184
Parser p (Parser::from_c_str (str, ctx, mq->pstate ()));
185
185
mq = p.parse_media_queries (); // re-assign now
186
- List_Obj ls = Cast<List>(mq->perform (&eval));
186
+ cpy->media_queries (mq);
187
+ media_block_stack.push_back (cpy);
187
188
Block_Obj blk = operator ()(m->block ());
188
189
Media_Block_Ptr mm = SASS_MEMORY_NEW (Media_Block,
189
190
m->pstate (),
190
- ls ,
191
+ mq ,
191
192
blk);
192
193
media_block_stack.pop_back ();
193
194
mm->tabs (m->tabs ());
You can’t perform that action at this time.
0 commit comments