Web Inspector: View.removeSubview not removing the element properly when not parented
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2019 00:48:01 +0000 (00:48 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2019 00:48:01 +0000 (00:48 +0000)
commit9765e6fb36d04e92759247050b6119502d2b7f8e
tree212aa063382841861499d30ee7abb8929bc8ff9d
parent85b8586113343acae78d07d2b4136e44a7d3bb57
Web Inspector: View.removeSubview not removing the element properly when not parented
https://bugs.webkit.org/show_bug.cgi?id=195146

Reviewed by Matt Baker.

Source/WebInspectorUI:

* UserInterface/Views/View.js:
(WI.View.prototype.removeSubview):
Since the element may not be a direct child, just use Element.prototype.remove.

LayoutTests:

* inspector/view/basics-expected.txt:
* inspector/view/basics.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/view/basics-expected.txt
LayoutTests/inspector/view/basics.html
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/View.js