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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 } 496 }
497 497
498 void InspectorLayerTreeAgent::willAddPageOverlay(const GraphicsLayer* layer) { 498 void InspectorLayerTreeAgent::willAddPageOverlay(const GraphicsLayer* layer) {
499 m_pageOverlayLayerIds.push_back(layer->platformLayer()->id()); 499 m_pageOverlayLayerIds.push_back(layer->platformLayer()->id());
500 } 500 }
501 501
502 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) { 502 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) {
503 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); 503 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id());
504 if (index == WTF::kNotFound) 504 if (index == WTF::kNotFound)
505 return; 505 return;
506 m_pageOverlayLayerIds.remove(index); 506 m_pageOverlayLayerIds.erase(index);
507 } 507 }
508 508
509 } // namespace blink 509 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/track/TrackListBase.h ('k') | third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698