| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |