Index: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
index 83d48af02136ae251f8848af9d932b5a0896df90..7a15d82df393157376d6d363c2ab8efc4eca67fb 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
@@ -232,8 +232,9 @@ void InspectorLayerTreeAgent::buildLayerIdToNodeIdMap(PaintLayer* root, LayerIdT |
if (!root->layoutObject()->isLayoutIFrame()) |
return; |
FrameView* childFrameView = toFrameView(toLayoutPart(root->layoutObject())->widget()); |
- if (LayoutView* childLayoutView = childFrameView->layoutView()) { |
- if (PaintLayerCompositor* childCompositor = childLayoutView->compositor()) |
+ LayoutViewItem childLayoutViewItem = childFrameView->layoutViewItem(); |
+ if (!childLayoutViewItem.isNull()) { |
+ if (PaintLayerCompositor* childCompositor = childLayoutViewItem.compositor()) |
buildLayerIdToNodeIdMap(childCompositor->rootLayer(), layerIdToNodeIdMap); |
} |
} |