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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.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/platform/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index ac1c32561660743c08256d10c4afad55f42df0ab..e8d657480b168e2f29a20dfed11015e7cee31394 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -236,7 +236,7 @@ void GraphicsLayer::removeAllChildren() {
void GraphicsLayer::removeFromParent() {
if (m_parent) {
// We use reverseFind so that removeAllChildren() isn't n^2.
- m_parent->m_children.remove(m_parent->m_children.reverseFind(this));
+ m_parent->m_children.erase(m_parent->m_children.reverseFind(this));
setParent(0);
}
@@ -1113,7 +1113,7 @@ void GraphicsLayer::addLinkHighlight(LinkHighlight* linkHighlight) {
}
void GraphicsLayer::removeLinkHighlight(LinkHighlight* linkHighlight) {
- m_linkHighlights.remove(m_linkHighlights.find(linkHighlight));
+ m_linkHighlights.erase(m_linkHighlights.find(linkHighlight));
updateChildList();
}

Powered by Google App Engine
This is Rietveld 408576698