| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 | 75 |
| 76 categoryResult.ruleResults.sort(ruleSorter); | 76 categoryResult.ruleResults.sort(ruleSorter); |
| 77 | 77 |
| 78 for (var i = 0; i < categoryResult.ruleResults.length; ++i) { | 78 for (var i = 0; i < categoryResult.ruleResults.length; ++i) { |
| 79 var ruleResult = categoryResult.ruleResults[i]; | 79 var ruleResult = categoryResult.ruleResults[i]; |
| 80 var treeElement = this._appendResult(this._treeOutline, ruleResult); | 80 var treeElement = this._appendResult(this._treeOutline, ruleResult); |
| 81 treeElement.listItemElement.addStyleClass("audit-result"); | 81 treeElement.listItemElement.addStyleClass("audit-result"); |
| 82 | 82 |
| 83 if (ruleResult.severity) { | 83 if (ruleResult.severity) { |
| 84 var severityElement = document.createElement("img"); | 84 var severityElement = document.createElement("div"); |
| 85 severityElement.className = "severity-" + ruleResult.severity; | 85 severityElement.className = "severity-" + ruleResult.severity; |
| 86 treeElement.listItemElement.appendChild(severityElement); | 86 treeElement.listItemElement.appendChild(severityElement); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 this.expand(); | 89 this.expand(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 WebInspector.AuditCategoryResultPane.prototype = { | 92 WebInspector.AuditCategoryResultPane.prototype = { |
| 93 /** | 93 /** |
| 94 * @param {(TreeOutline|TreeElement)} parentTreeElement | 94 * @param {(TreeOutline|TreeElement)} parentTreeElement |
| (...skipping 25 matching lines...) Expand all Loading... |
| 120 if (result.expanded) { | 120 if (result.expanded) { |
| 121 treeElement.listItemElement.removeStyleClass("parent"); | 121 treeElement.listItemElement.removeStyleClass("parent"); |
| 122 treeElement.listItemElement.addStyleClass("parent-expanded"); | 122 treeElement.listItemElement.addStyleClass("parent-expanded"); |
| 123 treeElement.expand(); | 123 treeElement.expand(); |
| 124 } | 124 } |
| 125 return treeElement; | 125 return treeElement; |
| 126 }, | 126 }, |
| 127 | 127 |
| 128 __proto__: WebInspector.SidebarPane.prototype | 128 __proto__: WebInspector.SidebarPane.prototype |
| 129 } | 129 } |
| OLD | NEW |