-
timothy@apple.com authored
sidebar next to resources. https://bugs.webkit.org/show_bug.cgi?id=18494 Reviewed by Adam Roben. * page/inspector/ResourcesPanel.js: (WebInspector.ResourcesPanel.prototype.addMessageToResource): Increment errors or warnings on the resource. Set the bubbleText to the total of the errors and warnings. Add a error or warning class to the bubble. (WebInspector.ResourcesPanel.prototype.clearMessages): Zero out the errors and warnings properties on each resource. Set the bubbleText back to an empty string. * page/inspector/SidebarTreeElement.js: (WebInspector.SidebarTreeElement): Create a statusElement. (WebInspector.SidebarTreeElement.prototype.get bubbleText): Return _bubbleText. (WebInspector.SidebarTreeElement.prototype.set bubbleText): Create bubbleElement if needed. Assign the value to _bubbleText and bubbleElement.textContent. (WebInspector.SidebarTreeElement.prototype.onattach): Append statusElement to _listItemNode. * page/inspector/inspector.css: Style rules for bubbles and status elements. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
82ce94c1