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 24 matching lines...) Expand all Loading... |
35 #include "InspectorFrontend.h" | 35 #include "InspectorFrontend.h" |
36 #include "core/dom/PseudoElement.h" | 36 #include "core/dom/PseudoElement.h" |
37 #include "core/inspector/IdentifiersFactory.h" | 37 #include "core/inspector/IdentifiersFactory.h" |
38 #include "core/inspector/InspectorDOMAgent.h" | 38 #include "core/inspector/InspectorDOMAgent.h" |
39 #include "core/inspector/InspectorState.h" | 39 #include "core/inspector/InspectorState.h" |
40 #include "core/inspector/InstrumentingAgents.h" | 40 #include "core/inspector/InstrumentingAgents.h" |
41 #include "core/platform/graphics/IntRect.h" | 41 #include "core/platform/graphics/IntRect.h" |
42 #include "core/rendering/RenderLayer.h" | 42 #include "core/rendering/RenderLayer.h" |
43 #include "core/rendering/RenderLayerBacking.h" | 43 #include "core/rendering/RenderLayerBacking.h" |
44 #include "core/rendering/RenderLayerCompositor.h" | 44 #include "core/rendering/RenderLayerCompositor.h" |
45 #include "core/rendering/RenderView.h" | |
46 | 45 |
47 namespace WebCore { | 46 namespace WebCore { |
48 | 47 |
49 namespace LayerTreeAgentState { | 48 namespace LayerTreeAgentState { |
50 static const char layerTreeAgentEnabled[] = "layerTreeAgentEnabled"; | 49 static const char layerTreeAgentEnabled[] = "layerTreeAgentEnabled"; |
51 }; | 50 }; |
52 | 51 |
53 InspectorLayerTreeAgent::InspectorLayerTreeAgent(InstrumentingAgents* instrument
ingAgents, InspectorCompositeState* state) | 52 InspectorLayerTreeAgent::InspectorLayerTreeAgent(InstrumentingAgents* instrument
ingAgents, InspectorCompositeState* state) |
54 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree", instrumentingAgen
ts, state) | 53 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree", instrumentingAgen
ts, state) |
55 , m_frontend(0) | 54 , m_frontend(0) |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 void InspectorLayerTreeAgent::unbindPseudoElement(PseudoElement* pseudoElement) | 341 void InspectorLayerTreeAgent::unbindPseudoElement(PseudoElement* pseudoElement) |
343 { | 342 { |
344 HashMap<PseudoElement*, String>::iterator iterator = m_pseudoElementToIdMap.
find(pseudoElement); | 343 HashMap<PseudoElement*, String>::iterator iterator = m_pseudoElementToIdMap.
find(pseudoElement); |
345 if (iterator == m_pseudoElementToIdMap.end()) | 344 if (iterator == m_pseudoElementToIdMap.end()) |
346 return; | 345 return; |
347 m_idToPseudoElement.remove(iterator->value); | 346 m_idToPseudoElement.remove(iterator->value); |
348 m_pseudoElementToIdMap.remove(iterator); | 347 m_pseudoElementToIdMap.remove(iterator); |
349 } | 348 } |
350 | 349 |
351 } // namespace WebCore | 350 } // namespace WebCore |
OLD | NEW |