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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 2140753003: DevTools: remove BaseToolbarPaneWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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/elements/StylesSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
index a2f9a351584786e5a17aacf3c2a3b950061aaa08..4304ea0841f3d2e436f915a21274866958804158 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -206,7 +206,7 @@ WebInspector.StylesSidebarPane.prototype = {
setNode: function(node)
{
this._stylesPopoverHelper.hide();
- node = WebInspector.SharedSidebarModel.elementNode(node);
+ node = node ? node.enclosingElementOrSelf() : null;
this._resetCache();
WebInspector.ElementsSidebarPane.prototype.setNode.call(this, node);

Powered by Google App Engine
This is Rietveld 408576698