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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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/network/RequestPreviewView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
index 45ce5c37f71a8298cd7063c9cb212ea42cbf8cf5..aa1c7a0132556345fd38ba9eccfdf1807211cc25 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js
@@ -72,9 +72,9 @@ WebInspector.RequestPreviewView.prototype = {
{
this._previewView = view;
view.show(this.element);
- if (view instanceof WebInspector.View) {
+ if (view instanceof WebInspector.SimpleView) {
var toolbar = new WebInspector.Toolbar("network-item-preview-toolbar", this.element);
- for (var item of /** @type {!WebInspector.View} */ (view).toolbarItems())
+ for (var item of /** @type {!WebInspector.SimpleView} */ (this._previewView).syncToolbarItems())
toolbar.appendToolbarItem(item);
}
this._previewViewHandledForTest(view);

Powered by Google App Engine
This is Rietveld 408576698