Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1808)

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 1434383002: Oilpan: move InspectedFrames to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix incorrect OwnPtr<> use Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698