Chromium Code Reviews| Index: Source/core/inspector/InspectorLayerTreeAgent.cpp |
| diff --git a/Source/core/inspector/InspectorLayerTreeAgent.cpp b/Source/core/inspector/InspectorLayerTreeAgent.cpp |
| index 2f4d146c96f58e060dcd895fef5d4020709af77c..ec299e68cb82490d9693f53ff310a896da3b8989 100644 |
| --- a/Source/core/inspector/InspectorLayerTreeAgent.cpp |
| +++ b/Source/core/inspector/InspectorLayerTreeAgent.cpp |
| @@ -197,6 +197,10 @@ void InspectorLayerTreeAgent::getLayers(ErrorString* errorString, const int* nod |
| return; |
| } |
| RenderLayer* enclosingLayer = renderer->enclosingLayer(); |
| + if (!enclosingLayer->enclosingCompositingLayer() || !enclosingLayer->enclosingCompositingLayer()->compositedLayerMapping()) { |
| + *errorString = "No CompositedLayerMapping for the provided node"; |
|
caseq
2013/10/17 12:37:38
When are we supposed to hit this? enclosingComposi
shawnsingh
2013/10/17 19:00:05
Yeah - as you suspected, this issue occurs when co
|
| + return; |
| + } |
| GraphicsLayer* enclosingGraphicsLayer = enclosingLayer->enclosingCompositingLayer()->compositedLayerMapping()->childForSuperlayers(); |
| buildLayerIdToNodeIdMap(errorString, enclosingLayer, layerIdToNodeIdMap); |
| gatherGraphicsLayers(enclosingGraphicsLayer, layerIdToNodeIdMap, layers); |