File tree Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -1534,10 +1534,8 @@ namespace Sass {
1534
1534
{
1535
1535
LOCAL_FLAG (is_in_selector_schema, true );
1536
1536
// the parser will look for a brace to end the selector
1537
- ctx.c_options .in_selector = true ; // do not compress colors
1538
1537
Expression_Obj sel = s->contents ()->perform (this );
1539
1538
std::string result_str (sel->to_string (ctx.c_options ));
1540
- ctx.c_options .in_selector = false ; // flag temporary only
1541
1539
result_str = unquote (Util::rtrim (result_str));
1542
1540
char * temp_cstr = sass_copy_c_string (result_str.c_str ());
1543
1541
ctx.strings .push_back (temp_cstr); // attach to context
Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ namespace Sass {
42
42
void Inspect::operator ()(Ruleset_Ptr ruleset)
43
43
{
44
44
if (ruleset->selector ()) {
45
- opt.in_selector = true ;
46
45
ruleset->selector ()->perform (this );
47
- opt.in_selector = false ;
48
46
}
49
47
if (ruleset->block ()) {
50
48
ruleset->block ()->perform (this );
@@ -623,11 +621,6 @@ namespace Sass {
623
621
// maybe an unknown token
624
622
std::string name = c->disp ();
625
623
626
- if (opt.in_selector && name != " " ) {
627
- append_token (name, c);
628
- return ;
629
- }
630
-
631
624
// resolved color
632
625
std::string res_name = name;
633
626
@@ -915,9 +908,7 @@ namespace Sass {
915
908
916
909
void Inspect::operator ()(Selector_Schema_Ptr s)
917
910
{
918
- opt.in_selector = true ;
919
911
s->contents ()->perform (this );
920
- opt.in_selector = false ;
921
912
}
922
913
923
914
void Inspect::operator ()(Parent_Selector_Ptr p)
Original file line number Diff line number Diff line change @@ -96,13 +96,10 @@ struct Sass_Inspect_Options {
96
96
// Precision for fractional numbers
97
97
int precision;
98
98
99
- // Do not compress colors in selectors
100
- bool in_selector;
101
-
102
99
// initialization list (constructor with defaults)
103
100
Sass_Inspect_Options (Sass_Output_Style style = Sass::NESTED,
104
- int precision = 5 , bool in_selector = false )
105
- : output_style(style), precision(precision), in_selector(in_selector)
101
+ int precision = 5 )
102
+ : output_style(style), precision(precision)
106
103
{ }
107
104
108
105
};
You can’t perform that action at this time.
0 commit comments