| Index: third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js b/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
|
| index afe101d5d686f25f2261acc4f34d94bff5d0b7d2..007e68e654979e77f00907ef094dffaeb84aa7a1 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
|
| @@ -524,6 +524,8 @@ TreeElement.prototype = {
|
| this._childrenListNode.insertBefore(child._childrenListNode, nextSibling);
|
| if (child.selected)
|
| child.select();
|
| + if (child.expanded)
|
| + child.expand();
|
| },
|
|
|
| /**
|
| @@ -881,7 +883,7 @@ TreeElement.prototype = {
|
|
|
| expand: function()
|
| {
|
| - if (!this._expandable || this.expanded)
|
| + if (!this._expandable || (this.expanded && this._children))
|
| return;
|
|
|
| // Set this before onpopulate. Since onpopulate can add elements, this makes
|
|
|