| 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 f386b8e2d80411083a0de26ea5b003580ab0c0ee..397a3fab4e63f093132e6e0c17c4342ca865ab2a 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
|
| @@ -2280,10 +2280,10 @@ WebInspector.StylePropertyTreeElement.prototype = {
|
| if (section && !section.editable)
|
| return;
|
|
|
| - if (!selectElement)
|
| - selectElement = this.nameElement; // No arguments passed in - edit the name element by default.
|
| - else
|
| + if (selectElement)
|
| selectElement = selectElement.enclosingNodeOrSelfWithClass("webkit-css-property") || selectElement.enclosingNodeOrSelfWithClass("value");
|
| + if (!selectElement)
|
| + selectElement = this.nameElement;
|
|
|
| if (WebInspector.isBeingEdited(selectElement))
|
| return;
|
|
|