Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 1993223002: [Layout API] Use FrameView::layoutViewItem() in InspectorLayerTreeAgent.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698