Skip to content
  • timothy@apple.com's avatar
    Makes setting shouldRefreshChildren on a TreeElement perform the refresh · 894ffe7f
    timothy@apple.com authored
    immediately if the element is already expanded.
    
    Reviewed by Adam Roben.
    
    * page/inspector/treeoutline.js:
    (TreeElement.prototype.get shouldRefreshChildren): Return this._shouldRefreshChildren.
    (TreeElement.prototype.set shouldRefreshChildren): If changing to true, and
    already expanded,
    call expand again to trigger the refresh. Sets this._shouldRefreshChildren.
    (TreeElement.prototype._attach): Check for this._shouldRefreshChildren.
    (TreeElement.prototype.expand): Ditto.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    894ffe7f