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

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

Issue 2606013002: DevTools: Preserve the selection in StylesSideBar more often (Closed)
Patch Set: git cl web Created 3 years, 12 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/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 30e0ebbe8a7e4f4206ab7bfea3a42da9ad81dd2d..7336342faaf7968c2b0d71c3de09fe9da1a772e7 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -1240,6 +1240,10 @@ Elements.StylePropertiesSection = class {
if (!event.target.isComponentSelectionCollapsed())
return;
+ if (this.propertiesTreeOutline.element.shadowRoot.firstChild &&
+ !this.propertiesTreeOutline.element.shadowRoot.firstChild.isComponentSelectionCollapsed())
+ return;
+
if (this._checkWillCancelEditing())
return;
« 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