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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesView.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/sources/SourcesView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
index 2b57bda3c78d6aaa22b8010baa4391ec61abea11..eea0d2d7d6557fc021535d0c56087a64fac37b05 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
@@ -270,8 +270,8 @@ WebInspector.SourcesView.prototype = {
{
this._scriptViewToolbar.removeToolbarItems();
var view = this.visibleView()
- if (view instanceof WebInspector.View) {
- for (var item of (/** @type {?WebInspector.View} */(view)).toolbarItems())
+ if (view instanceof WebInspector.SimpleView) {
+ for (var item of (/** @type {?WebInspector.SimpleView} */(view)).syncToolbarItems())
this._scriptViewToolbar.appendToolbarItem(item);
}
},

Powered by Google App Engine
This is Rietveld 408576698