Index: Source/core/inspector/InspectorLayerTreeAgent.cpp |
diff --git a/Source/core/inspector/InspectorLayerTreeAgent.cpp b/Source/core/inspector/InspectorLayerTreeAgent.cpp |
index f23de6d40245164b33914497ebcbd882c2648539..144a92e125153d9a871d8cbf24f8a9eda3248c99 100644 |
--- a/Source/core/inspector/InspectorLayerTreeAgent.cpp |
+++ b/Source/core/inspector/InspectorLayerTreeAgent.cpp |
@@ -183,7 +183,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) { |
if (Node* node = root->renderer()->generatingNode()) { |
GraphicsLayer* graphicsLayer = root->backing()->childForSuperlayers(); |
layerIdToNodeIdMap.set(graphicsLayer->platformLayer()->id(), idForNode(errorString, node)); |