Skip to content
  • timothy@apple.com's avatar
    Refactors code that updates the errors and warnings count in the · 5a5785c6
    timothy@apple.com authored
    resources sidebar so other functions can easily trigger updates.
    
    Reviewed by Adam Roben.
    
    * page/inspector/ResourcesPanel.js:
    (WebInspector.ResourcesPanel.prototype.addMessageToResource): Call updateErrorsAndWarnings.
    Removes code that updates the bubbleText and class names.
    (WebInspector.ResourcesPanel.prototype.clearMessages): Ditto.
    (WebInspector.ResourceSidebarTreeElement.prototype.updateErrorsAndWarnings):
    Added. Updates the bubbleText and adds or removes the class names
    depending on if the values are zero.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5a5785c6