Index: third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp |
diff --git a/third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp b/third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp |
index 1619e10908443f2728422d9eebd00488db3a5f82..4fac167feab7c0448e9e86189dec3862bc347963 100644 |
--- a/third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp |
+++ b/third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp |
@@ -35,7 +35,7 @@ void FrameRequestCallbackCollection::cancelCallback(CallbackId id) { |
if (m_callbacks[i]->m_id == id) { |
probe::asyncTaskCanceledBreakable(m_context, "cancelAnimationFrame", |
m_callbacks[i]); |
- m_callbacks.remove(i); |
+ m_callbacks.erase(i); |
TRACE_EVENT_INSTANT1("devtools.timeline", "CancelAnimationFrame", |
TRACE_EVENT_SCOPE_THREAD, "data", |
InspectorAnimationFrameEvent::data(m_context, id)); |