Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4754)

Unified Diff: cc/tree_synchronizer.cc

Issue 11418108: cc: Make the ScopedPtrVector and ScopedPtrDeque containers act like STL vector and deque. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android!! Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tile_manager.cc ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « cc/tile_manager.cc ('k') | content/common/cc_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698