Skip to content
  • timothy@apple.com's avatar
    Clean up some areas of TreeOutline. · 3117564d
    timothy@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=123924
    
    Reviewed by Joseph Pecoraro.
    
    * UserInterface/TreeOutline.js:
    (TreeOutline.prototype.appendChild): Don't force create _childrenListNode, it will be created
    when the tree element is expanded. Only attach if _childrenListNode already exists.
    (TreeOutline.prototype.insertChild): Ditto.
    (TreeOutline.prototype.getCachedTreeElement): Check the value of __treeElementIdentifier
    not just the existence of the property. It should never be null/undefined/0, but be safe.
    (TreeOutline.prototype.findTreeElement): Null check isAncestor, it isn't required.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3117564d