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(); |
} |