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

Unified Diff: third_party/WebKit/Source/devtools/front_end/layers/LayersPanel.js

Issue 2412023002: DevTools: migrate InspectorView to tabbed view location. (Closed)
Patch Set: test fixed Created 4 years, 2 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
Index: third_party/WebKit/Source/devtools/front_end/layers/LayersPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/layers/LayersPanel.js b/third_party/WebKit/Source/devtools/front_end/layers/LayersPanel.js
index 43074181c71d59d12748c6f60043c386885622ad..eb92eb0b3639adb9eeb04d9f77bec6995e0cc9f7 100644
--- a/third_party/WebKit/Source/devtools/front_end/layers/LayersPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/layers/LayersPanel.js
@@ -178,8 +178,6 @@ WebInspector.LayersPanel.LayerTreeRevealer.prototype = {
if (!(snapshotData instanceof WebInspector.DeferredLayerTree))
return Promise.reject(new Error("Internal error: not a WebInspector.DeferredLayerTree"));
var panel = /** @type {!WebInspector.LayersPanel} */ (self.runtime.sharedInstance(WebInspector.LayersPanel));
- WebInspector.inspectorView.setCurrentPanel(panel);
- panel._showLayerTree(/** @type {!WebInspector.DeferredLayerTree} */ (snapshotData));
- return Promise.resolve();
+ return WebInspector.viewManager.showView("layers").then(() => panel._showLayerTree(/** @type {!WebInspector.DeferredLayerTree} */ (snapshotData)));
}
}

Powered by Google App Engine
This is Rietveld 408576698