| Index: Source/core/inspector/InspectorLayerTreeAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorLayerTreeAgent.cpp b/Source/core/inspector/InspectorLayerTreeAgent.cpp
|
| index b91d04a1051f2e6bc6a8837bea0ff71f4421c2e5..f7098bc2afc0f606049f7e5ca99798021b3e682a 100644
|
| --- a/Source/core/inspector/InspectorLayerTreeAgent.cpp
|
| +++ b/Source/core/inspector/InspectorLayerTreeAgent.cpp
|
| @@ -181,6 +181,8 @@ void InspectorLayerTreeAgent::getLayers(ErrorString* errorString, const int* nod
|
| *errorString = "Not in the compositing mode";
|
| return;
|
| }
|
| + // FIXME: when inspector layer access is made asynchronous, this will probably need to be changed.
|
| + compositor->updateCompositingLayers(CompositingUpdateFinishAllDeferredWork);
|
| if (!nodeId) {
|
| buildLayerIdToNodeIdMap(errorString, compositor->rootRenderLayer(), layerIdToNodeIdMap);
|
| gatherGraphicsLayers(compositor->rootGraphicsLayer(), layerIdToNodeIdMap, layers);
|
| @@ -197,6 +199,7 @@ void InspectorLayerTreeAgent::getLayers(ErrorString* errorString, const int* nod
|
| return;
|
| }
|
| RenderLayer* enclosingLayer = renderer->enclosingLayer();
|
| + ASSERT(enclosingLayer->enclosingCompositingLayer());
|
| GraphicsLayer* enclosingGraphicsLayer = enclosingLayer->enclosingCompositingLayer()->compositedLayerMapping()->childForSuperlayers();
|
| buildLayerIdToNodeIdMap(errorString, enclosingLayer, layerIdToNodeIdMap);
|
| gatherGraphicsLayers(enclosingGraphicsLayer, layerIdToNodeIdMap, layers);
|
|
|