| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree") | 144 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree") |
| 145 , m_frontend(0) | 145 , m_frontend(0) |
| 146 , m_page(page) | 146 , m_page(page) |
| 147 { | 147 { |
| 148 } | 148 } |
| 149 | 149 |
| 150 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() | 150 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() |
| 151 { | 151 { |
| 152 } | 152 } |
| 153 | 153 |
| 154 void InspectorLayerTreeAgent::trace(Visitor* visitor) |
| 155 { |
| 156 visitor->trace(m_page); |
| 157 InspectorBaseAgent::trace(visitor); |
| 158 } |
| 159 |
| 154 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend) | 160 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend) |
| 155 { | 161 { |
| 156 m_frontend = frontend->layertree(); | 162 m_frontend = frontend->layertree(); |
| 157 } | 163 } |
| 158 | 164 |
| 159 void InspectorLayerTreeAgent::clearFrontend() | 165 void InspectorLayerTreeAgent::clearFrontend() |
| 160 { | 166 { |
| 161 m_frontend = 0; | 167 m_frontend = 0; |
| 162 disable(0); | 168 disable(0); |
| 163 } | 169 } |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) | 418 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) |
| 413 { | 419 { |
| 414 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); | 420 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); |
| 415 if (index == WTF::kNotFound) | 421 if (index == WTF::kNotFound) |
| 416 return; | 422 return; |
| 417 m_pageOverlayLayerIds.remove(index); | 423 m_pageOverlayLayerIds.remove(index); |
| 418 } | 424 } |
| 419 | 425 |
| 420 | 426 |
| 421 } // namespace WebCore | 427 } // namespace WebCore |
| OLD | NEW |