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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 9 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
Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index ffe33d94e50aa39bb66a4789bd403afe6cb2c93c..b4019b6d8850a8e180b6f98922e7af508bcb93d8 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -3451,7 +3451,7 @@ void CompositedLayerMapping::removeLayerFromSquashingGraphicsLayer(
if (layerIndex == m_squashedLayers.size())
return;
- m_squashedLayers.remove(layerIndex);
+ m_squashedLayers.erase(layerIndex);
}
#if DCHECK_IS_ON()
@@ -3482,8 +3482,8 @@ void CompositedLayerMapping::finishAccumulatingSquashingLayers(
layersNeedingPaintInvalidation.push_back(m_squashedLayers[i].paintLayer);
}
- m_squashedLayers.remove(nextSquashedLayerIndex,
- m_squashedLayers.size() - nextSquashedLayerIndex);
+ m_squashedLayers.erase(nextSquashedLayerIndex,
+ m_squashedLayers.size() - nextSquashedLayerIndex);
}
}

Powered by Google App Engine
This is Rietveld 408576698