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

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: Created 4 years 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..45904a62414fba7e6006c960ccabcf7111770d56 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,9 @@ Elements.StylePropertiesSection = class {
if (!event.target.isComponentSelectionCollapsed())
return;
+ if (!this.propertiesTreeOutline.element.shadowRoot.firstChild.isComponentSelectionCollapsed())
einbinder 2016/12/29 08:58:45 This feels pretty magical. Ideally we would have a
dgozman 2016/12/29 19:02:58 Does shadow dom v1 solve that? I think that we onl
dgozman 2016/12/30 00:42:33 if (this.propertiesTreeOutline.element.shadowRoot.
einbinder 2016/12/30 02:17:37 Done.
+ 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