• timothy@apple.com's avatar
    Fixes the hang that could happen when option-clicking to expand · f1d15fc9
    timothy@apple.com authored
    a disclosure triangle in the Properties pane. This change limits
    the recursion depth when expanding the tree elements.
    
    <rdar://problem/5847681> Safari hangs when option-clicking a
    disclosure triangle in the Inspector's Properties pane
    
    Reviewed by John Sullivan.
    
    * page/inspector/treeoutline.js:
    (TreeElement.prototype.expandRecursively): Pass an empty info object to
    traverseNextTreeElement to get the depthChange value. This is used to
    compute a current depth. If the depth exceeds the maxDepth argument, the
    item isn't expanded and children wont be populated when traverseNextTreeElement
    is called until the depth goes below the maxDepth.
    (TreeElement.prototype.traverseNextTreeElement): Added a new info
    argument that can be optionally used to return extra info like depth change.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33413 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f1d15fc9
ChangeLog 2.43 MB