| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "core/rendering/RenderLayer.h" | 44 #include "core/rendering/RenderLayer.h" |
| 45 #include "core/rendering/RenderLayerBacking.h" | 45 #include "core/rendering/RenderLayerBacking.h" |
| 46 #include "core/rendering/RenderLayerCompositor.h" | 46 #include "core/rendering/RenderLayerCompositor.h" |
| 47 | 47 |
| 48 namespace WebCore { | 48 namespace WebCore { |
| 49 | 49 |
| 50 namespace LayerTreeAgentState { | 50 namespace LayerTreeAgentState { |
| 51 static const char layerTreeAgentEnabled[] = "layerTreeAgentEnabled"; | 51 static const char layerTreeAgentEnabled[] = "layerTreeAgentEnabled"; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 InspectorLayerTreeAgent::InspectorLayerTreeAgent(InstrumentingAgents* instrument
ingAgents, InspectorCompositeState* state) | 54 InspectorLayerTreeAgent::InspectorLayerTreeAgent(InstrumentingAgents* instrument
ingAgents, InspectorState* state) |
| 55 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree", instrumentingAgen
ts, state) | 55 : InspectorBaseAgent(instrumentingAgents, state) |
| 56 , m_frontend(0) | 56 , m_frontend(0) |
| 57 { | 57 { |
| 58 } | 58 } |
| 59 | 59 |
| 60 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() | 60 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() |
| 61 { | 61 { |
| 62 reset(); | 62 reset(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend) | 65 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend) |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 void InspectorLayerTreeAgent::unbindPseudoElement(PseudoElement* pseudoElement) | 351 void InspectorLayerTreeAgent::unbindPseudoElement(PseudoElement* pseudoElement) |
| 352 { | 352 { |
| 353 HashMap<PseudoElement*, String>::iterator iterator = m_pseudoElementToIdMap.
find(pseudoElement); | 353 HashMap<PseudoElement*, String>::iterator iterator = m_pseudoElementToIdMap.
find(pseudoElement); |
| 354 if (iterator == m_pseudoElementToIdMap.end()) | 354 if (iterator == m_pseudoElementToIdMap.end()) |
| 355 return; | 355 return; |
| 356 m_idToPseudoElement.remove(iterator->value); | 356 m_idToPseudoElement.remove(iterator->value); |
| 357 m_pseudoElementToIdMap.remove(iterator); | 357 m_pseudoElementToIdMap.remove(iterator); |
| 358 } | 358 } |
| 359 | 359 |
| 360 } // namespace WebCore | 360 } // namespace WebCore |
| OLD | NEW |