Index: Source/core/inspector/InspectorLayerTreeAgent.cpp |
diff --git a/Source/core/inspector/InspectorLayerTreeAgent.cpp b/Source/core/inspector/InspectorLayerTreeAgent.cpp |
index acdea584135b631a58662e8c9cf400672f280fee..846e784d29c8e02a1111c95666d4bc7a8c75c1f0 100644 |
--- a/Source/core/inspector/InspectorLayerTreeAgent.cpp |
+++ b/Source/core/inspector/InspectorLayerTreeAgent.cpp |
@@ -229,9 +229,9 @@ PassRefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> > InspectorLayerTre |
void InspectorLayerTreeAgent::buildLayerIdToNodeIdMap(RenderLayer* root, LayerIdToNodeIdMap& layerIdToNodeIdMap) |
{ |
- if (root->hasCompositedLayerMapping()) { |
+ if (CompositedLayerMapping* compositedLayerMapping = root->compositedLayerMapping()) { |
if (Node* node = root->renderer()->generatingNode()) { |
- GraphicsLayer* graphicsLayer = root->compositedLayerMapping()->childForSuperlayers(); |
+ GraphicsLayer* graphicsLayer = compositedLayerMapping->childForSuperlayers(); |
layerIdToNodeIdMap.set(graphicsLayer->platformLayer()->id(), idForNode(node)); |
} |
} |