Index: Source/core/inspector/InspectorLayerTreeAgent.cpp |
diff --git a/Source/core/inspector/InspectorLayerTreeAgent.cpp b/Source/core/inspector/InspectorLayerTreeAgent.cpp |
index ca07ba42e7d1f97e5a312fa53733d5f990788fd4..6979bb61c7b83585c2330b0d8b6d1b51afb52846 100644 |
--- a/Source/core/inspector/InspectorLayerTreeAgent.cpp |
+++ b/Source/core/inspector/InspectorLayerTreeAgent.cpp |
@@ -204,7 +204,7 @@ void InspectorLayerTreeAgent::getLayers(ErrorString* errorString, const int* nod |
void InspectorLayerTreeAgent::buildLayerIdToNodeIdMap(ErrorString* errorString, RenderLayer* root, LayerIdToNodeIdMap& layerIdToNodeIdMap) |
{ |
- if (root->isComposited()) { |
+ if (root->compositingState() == PaintsIntoOwnBacking || root->compositingState() == HasOwnBackingButPaintsIntoAncestor) { |
Julien - ping for review
2013/10/07 18:26:24
Nit: compositedLayerMapping()?
|
if (Node* node = root->renderer()->generatingNode()) { |
GraphicsLayer* graphicsLayer = root->compositedLayerMapping()->childForSuperlayers(); |
layerIdToNodeIdMap.set(graphicsLayer->platformLayer()->id(), idForNode(errorString, node)); |