| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 , m_inspectedFrames(inspectedFrames) | 152 , m_inspectedFrames(inspectedFrames) |
| 153 { | 153 { |
| 154 } | 154 } |
| 155 | 155 |
| 156 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() | 156 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() |
| 157 { | 157 { |
| 158 } | 158 } |
| 159 | 159 |
| 160 DEFINE_TRACE(InspectorLayerTreeAgent) | 160 DEFINE_TRACE(InspectorLayerTreeAgent) |
| 161 { | 161 { |
| 162 visitor->trace(m_inspectedFrames); |
| 162 InspectorBaseAgent::trace(visitor); | 163 InspectorBaseAgent::trace(visitor); |
| 163 } | 164 } |
| 164 | 165 |
| 165 void InspectorLayerTreeAgent::restore() | 166 void InspectorLayerTreeAgent::restore() |
| 166 { | 167 { |
| 167 // We do not re-enable layer agent automatically after navigation. This is b
ecause | 168 // We do not re-enable layer agent automatically after navigation. This is b
ecause |
| 168 // it depends on DOMAgent and node ids in particular, so we let front-end re
quest document | 169 // it depends on DOMAgent and node ids in particular, so we let front-end re
quest document |
| 169 // and re-enable the agent manually after this. | 170 // and re-enable the agent manually after this. |
| 170 } | 171 } |
| 171 | 172 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) | 464 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) |
| 464 { | 465 { |
| 465 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); | 466 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); |
| 466 if (index == WTF::kNotFound) | 467 if (index == WTF::kNotFound) |
| 467 return; | 468 return; |
| 468 m_pageOverlayLayerIds.remove(index); | 469 m_pageOverlayLayerIds.remove(index); |
| 469 } | 470 } |
| 470 | 471 |
| 471 | 472 |
| 472 } // namespace blink | 473 } // namespace blink |
| OLD | NEW |