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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 m_instrumentingAgents->setInspectorLayerTreeAgent(0); | 194 m_instrumentingAgents->setInspectorLayerTreeAgent(0); |
195 m_snapshotById.clear(); | 195 m_snapshotById.clear(); |
196 ErrorString unused; | 196 ErrorString unused; |
197 } | 197 } |
198 | 198 |
199 void InspectorLayerTreeAgent::layerTreeDidChange() | 199 void InspectorLayerTreeAgent::layerTreeDidChange() |
200 { | 200 { |
201 m_frontend->layerTreeDidChange(buildLayerTree()); | 201 m_frontend->layerTreeDidChange(buildLayerTree()); |
202 } | 202 } |
203 | 203 |
204 void InspectorLayerTreeAgent::didPaint(RenderObject*, const GraphicsLayer* graph
icsLayer, GraphicsContext*, const LayoutRect& rect) | 204 void InspectorLayerTreeAgent::didPaint(LayoutObject*, const GraphicsLayer* graph
icsLayer, GraphicsContext*, const LayoutRect& rect) |
205 { | 205 { |
206 // Should only happen for FrameView paints when compositing is off. Consider
different instrumentation method for that. | 206 // Should only happen for FrameView paints when compositing is off. Consider
different instrumentation method for that. |
207 if (!graphicsLayer) | 207 if (!graphicsLayer) |
208 return; | 208 return; |
209 | 209 |
210 RefPtr<TypeBuilder::DOM::Rect> domRect = TypeBuilder::DOM::Rect::create() | 210 RefPtr<TypeBuilder::DOM::Rect> domRect = TypeBuilder::DOM::Rect::create() |
211 .setX(rect.x()) | 211 .setX(rect.x()) |
212 .setY(rect.y()) | 212 .setY(rect.y()) |
213 .setWidth(rect.width()) | 213 .setWidth(rect.width()) |
214 .setHeight(rect.height()); | 214 .setHeight(rect.height()); |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) | 486 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) |
487 { | 487 { |
488 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); | 488 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); |
489 if (index == WTF::kNotFound) | 489 if (index == WTF::kNotFound) |
490 return; | 490 return; |
491 m_pageOverlayLayerIds.remove(index); | 491 m_pageOverlayLayerIds.remove(index); |
492 } | 492 } |
493 | 493 |
494 | 494 |
495 } // namespace blink | 495 } // namespace blink |
OLD | NEW |