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