Fixes the bug where the selected resource would be deselected after
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Apr 2008 17:32:09 +0000 (17:32 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Apr 2008 17:32:09 +0000 (17:32 +0000)
commit55c68f7bd3510c72b1d4ecdbc7d10f188059c827
treeb089c87f90559eee453c358584fc770457e3d205
parentf87d77b798705c2a433c896b3a4b8a6f4bd336aa
Fixes the bug where the selected resource would be deselected after
changing the sort order in the Resources panel.

Reviewed by Dan Bernstein.

* page/inspector/ResourcesPanel.js:
(WebInspector.ResourcesPanel.prototype._sortResourcesIfNeeded):
Rememebr if the tree element that we are sorting was selected, so
the selection can be restored after it is re-inserted. The onSelect
is suppressed since we don't need to show the resource again.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32732 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/page/inspector/ResourcesPanel.js