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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree") | 134 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree") |
135 , m_frontend(0) | 135 , m_frontend(0) |
136 , m_page(page) | 136 , m_page(page) |
137 { | 137 { |
138 } | 138 } |
139 | 139 |
140 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() | 140 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() |
141 { | 141 { |
142 } | 142 } |
143 | 143 |
| 144 void InspectorLayerTreeAgent::trace(Visitor* visitor) |
| 145 { |
| 146 visitor->trace(m_page); |
| 147 InspectorBaseAgent::trace(visitor); |
| 148 } |
| 149 |
144 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend) | 150 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend) |
145 { | 151 { |
146 m_frontend = frontend->layertree(); | 152 m_frontend = frontend->layertree(); |
147 } | 153 } |
148 | 154 |
149 void InspectorLayerTreeAgent::clearFrontend() | 155 void InspectorLayerTreeAgent::clearFrontend() |
150 { | 156 { |
151 m_frontend = 0; | 157 m_frontend = 0; |
152 disable(0); | 158 disable(0); |
153 } | 159 } |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) | 404 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) |
399 { | 405 { |
400 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); | 406 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); |
401 if (index == WTF::kNotFound) | 407 if (index == WTF::kNotFound) |
402 return; | 408 return; |
403 m_pageOverlayLayerIds.remove(index); | 409 m_pageOverlayLayerIds.remove(index); |
404 } | 410 } |
405 | 411 |
406 | 412 |
407 } // namespace WebCore | 413 } // namespace WebCore |
OLD | NEW |