-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preparation for interpolate/output refactor #899
Changes from all commits
428cf8e
7f81d2b
62b82b0
2e0d936
c3b76bb
047846d
c3168da
eb399b2
892e94a
91ff64a
94ec7bd
cc7f149
9ada376
e5dc577
8056d6b
1dd9f71
0b2ff30
f0a28f6
f315889
1974c70
fa1242c
0a28945
78b3a68
59794ad
2936171
1d00343
5e67a6f
1d887fd
d6f7214
7d3753a
b6d8b81
45fae94
accb26e
fd74497
430018e
1e1b6e6
daa0898
f310b3b
ba0fe1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ namespace Sass { | |
new_env.link(*env); | ||
env = &new_env; | ||
Block* bb = new (ctx.mem) Block(b->pstate(), b->length(), b->is_root()); | ||
// bb->tabs(b->tabs()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you mean to comment out these? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it probably produced wrong output in my WIP branch and unit tests don't seem to fail. I will need to check nested/compressed rendering anyway in the end. The goal is to get 100% equal output as ruby sass (which my WIP branch currently does). |
||
block_stack.push_back(bb); | ||
append_block(b); | ||
block_stack.pop_back(); | ||
|
@@ -97,6 +98,7 @@ namespace Sass { | |
Ruleset* rr = new (ctx.mem) Ruleset(r->pstate(), | ||
r->selector(), | ||
r->block()->perform(this)->block()); | ||
// rr->tabs(r->block()->tabs()); | ||
p_stack.pop_back(); | ||
|
||
Block* props = new Block(rr->block()->pstate()); | ||
|
@@ -191,6 +193,7 @@ namespace Sass { | |
{ | ||
Block* bb = m->block()->perform(this)->block(); | ||
for (size_t i = 0, L = bb->length(); i < L; ++i) { | ||
(bb->elements())[i]->tabs(m->tabs()); | ||
if (bubblable((*bb)[i])) (*bb)[i]->tabs((*bb)[i]->tabs() + m->tabs()); | ||
} | ||
if (bb->length() && bubblable(bb->last())) bb->last()->group_end(m->group_end()); | ||
|
@@ -295,6 +298,8 @@ namespace Sass { | |
wrapper_block, | ||
m->selector()); | ||
|
||
mm->tabs(m->tabs()); | ||
|
||
Bubble* bubble = new (ctx.mem) Bubble(mm->pstate(), mm); | ||
|
||
return bubble; | ||
|
@@ -496,7 +501,7 @@ namespace Sass { | |
|
||
Media_Query* Cssize::merge_media_query(Media_Query* mq1, Media_Query* mq2) | ||
{ | ||
To_String to_string; | ||
To_String to_string(&ctx); | ||
|
||
string type; | ||
string mod; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know about this variable name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
needs_unquoting
flag will not be needed with the full refactoring. I my WIP this flag is needed to have the same behavior as ruby sass (sass/sass#1291) which will be deprecated. Which means thesass_fix_1291
can probably be removed once sass has it deprecated. But you're right, currently it doesn't make sense asneeds_unquoting
is still in the code. Please see comment below aboutString_Constant
vs.String_Quoted
. I would favor to ignore it for now.