Added TreeOutline.removeChildAtIndex and TreeElement.removeChildAtIndex
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jul 2008 02:47:33 +0000 (02:47 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jul 2008 02:47:33 +0000 (02:47 +0000)
commit4deee45b74bfea59d33b202423ad68bbb000892d
treec57f0e711ef8e67d8a1b64ebf069bd0113b57025
parent65746f6537f61917a3be4f06c2ac6a01ece7d799
    Added TreeOutline.removeChildAtIndex and TreeElement.removeChildAtIndex
        for efficiency of callers that know the index of the child. This
        will be used in an upcoming change.

        Reviewed by Adam Roben.

        * page/inspector/treeoutline.js:
        (TreeOutline._removeChildAtIndex): Renamed from _removeChild
        and modified to take an index.
        (TreeOutline._removeChild): Call _removeChildAtIndex with the
        child index found using indexOf.
        (TreeOutline.prototype.removeChildAtIndex): Added. Calls
        TreeOutline._removeChildAtIndex.
        (TreeElement.prototype.removeChildAtIndex): Ditto.

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