| Index: cc/tree_synchronizer.cc
|
| diff --git a/cc/tree_synchronizer.cc b/cc/tree_synchronizer.cc
|
| index ea3cb1d64b0ba5c8839cc9bbcb9fd770a01cc032..4adbe459c3c5bf68c17e21ebf8ac20dd6195eb2a 100644
|
| --- a/cc/tree_synchronizer.cc
|
| +++ b/cc/tree_synchronizer.cc
|
| @@ -36,8 +36,8 @@ void TreeSynchronizer::collectExistingLayerImplRecursive(ScopedPtrLayerImplMap&
|
| return;
|
|
|
| ScopedPtrVector<LayerImpl>& children = layerImpl->m_children;
|
| - for (size_t i = 0; i < children.size(); ++i)
|
| - collectExistingLayerImplRecursive(oldLayers, children.take(i));
|
| + for (ScopedPtrVector<LayerImpl>::iterator it = children.begin(); it != children.end(); ++it)
|
| + collectExistingLayerImplRecursive(oldLayers, children.take(it));
|
|
|
| collectExistingLayerImplRecursive(oldLayers, layerImpl->takeMaskLayer());
|
| collectExistingLayerImplRecursive(oldLayers, layerImpl->takeReplicaLayer());
|
|
|