Skip to content
  • timothy@apple.com's avatar
    Change View.show to call detach if the parentNode dosen't · 8906ca0d
    timothy@apple.com authored
    match before appending to the passed in parent element.
    This also prevents appending to the same parent element
    multiple times.
    
    Reviewed by John Sullivan.
    
    * page/inspector/FontView.js:
    (WebInspector.FontView.prototype.show): Pass the parent element to View.show.
    * page/inspector/ResourceView.js: Optimize the attach method to no append if
    there is a parentNode already.
    * page/inspector/SourceView.js: Ditto.
    * page/inspector/View.js: Call detach before appending if the parentNode
    doesn't match the passed in element.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33403 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8906ca0d