Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Jan 4, 2015
1 parent f69a76b commit db481cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions cssize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ namespace Sass {
return debubble(mm->block(), mm)->block();
}

inline Statement* Cssize::bubble(Media_Block* m)
Statement* Cssize::bubble(Media_Block* m)
{
Ruleset* parent = static_cast<Ruleset*>(this->parent());

Expand Down Expand Up @@ -133,12 +133,12 @@ namespace Sass {
return bubble;
}

inline bool Cssize::bubblable(Statement* s)
bool Cssize::bubblable(Statement* s)
{
return s->statement_type() == Statement::RULESET || s->bubbles();
}

inline Statement* Cssize::flatten(Statement* s)
Statement* Cssize::flatten(Statement* s)
{
Block* bb = s->block();
Block* result = new (ctx.mem) Block(bb->path(), bb->position(), 0, bb->is_root());
Expand All @@ -157,7 +157,7 @@ namespace Sass {
return result;
}

inline vector<pair<bool, Block*>> Cssize::slice_by_bubble(Statement* b)
vector<pair<bool, Block*>> Cssize::slice_by_bubble(Statement* b)
{
vector<pair<bool, Block*>> results;
for (size_t i = 0, L = b->block()->length(); i < L; ++i) {
Expand All @@ -179,7 +179,7 @@ namespace Sass {
return results;
}

inline Statement* Cssize::debubble(Block* children, Statement* parent)
Statement* Cssize::debubble(Block* children, Statement* parent)
{
Statement* previous_parent = 0;
vector<pair<bool, Block*>> baz = slice_by_bubble(children);
Expand Down Expand Up @@ -260,12 +260,12 @@ namespace Sass {
return ss;
}

inline Statement* Cssize::fallback_impl(AST_Node* n)
Statement* Cssize::fallback_impl(AST_Node* n)
{
return static_cast<Statement*>(n);
}

inline void Cssize::append_block(Block* b)
void Cssize::append_block(Block* b)
{
Block* current_block = block_stack.back();

Expand Down
6 changes: 3 additions & 3 deletions cssize.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ namespace Sass {
// Statement* operator()(Mixin_Call*);
// Statement* operator()(Content*);

template <typename U>
Statement* fallback(U x) { return fallback_impl(x); }

Statement* parent();
vector<pair<bool, Block*>> slice_by_bubble(Statement*);
Statement* bubble(Media_Block*);
Expand All @@ -74,6 +71,9 @@ namespace Sass {
List* merge_media_queries(Media_Block*, Media_Block*);
Media_Query* merge_media_query(Media_Query*, Media_Query*);

template <typename U>
Statement* fallback(U x) { return fallback_impl(x); }

void append_block(Block*);
};

Expand Down

0 comments on commit db481cb

Please sign in to comment.