| Index: third_party/WebKit/Source/devtools/front_end/ui/Widget.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
|
| index b572002b46ed8753ca1e848f56e24812e1d2e2a3..8866bcbbb9a657a22e65854575a88dfd4239d2c0 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
|
| @@ -256,11 +256,13 @@ WebInspector.Widget.prototype = {
|
| else
|
| WebInspector.Widget.__assert(currentParent && currentParent.__widget === this._parentWidget, "Attempt to show under node belonging to alien widget");
|
|
|
| - if (this._visible)
|
| + var wasVisible = this._visible;
|
| + if (wasVisible && this.element.parentElement === parentElement)
|
| return;
|
| +
|
| this._visible = true;
|
|
|
| - if (this._parentIsShowing())
|
| + if (!wasVisible && this._parentIsShowing())
|
| this._processWillShow();
|
|
|
| this.element.classList.remove("hidden");
|
| @@ -274,7 +276,7 @@ WebInspector.Widget.prototype = {
|
| WebInspector.Widget._originalAppendChild.call(parentElement, this.element);
|
| }
|
|
|
| - if (this._parentIsShowing())
|
| + if (!wasVisible && this._parentIsShowing())
|
| this._processWasShown();
|
|
|
| if (this._parentWidget && this._hasNonZeroConstraints())
|
|
|