Chromium Code Reviews| Index: Source/core/rendering/RenderGrid.cpp |
| diff --git a/Source/core/rendering/RenderGrid.cpp b/Source/core/rendering/RenderGrid.cpp |
| index e7daaecd24e539d34fa4095dad4fb805159dccc8..ac7adf8d82d8d5d9e4c7f5f56d4f1f8b624944d5 100644 |
| --- a/Source/core/rendering/RenderGrid.cpp |
| +++ b/Source/core/rendering/RenderGrid.cpp |
| @@ -219,6 +219,11 @@ void RenderGrid::addChild(RenderObject* newChild, RenderObject* beforeChild) |
| return; |
| } |
| + // If the new child has been inserted inside an existent anonymous block, we can simple ignore it as the anonymous |
|
Julien - ping for review
2014/09/08 23:13:51
s/simple/simply/
Manuel Rego
2014/09/09 10:03:57
Done.
|
| + // block is an already known grid item. |
| + if (newChild->parent() != this) |
| + return; |
| + |
| // FIXME: Implement properly "stack" value in auto-placement algorithm. |
| if (!style()->isGridAutoFlowAlgorithmStack()) { |
| // The grid needs to be recomputed as it might contain auto-placed items that will change their position. |