| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 | 52 |
| 53 categoryResult.ruleResults.sort(ruleSorter); | 53 categoryResult.ruleResults.sort(ruleSorter); |
| 54 | 54 |
| 55 for (var i = 0; i < categoryResult.ruleResults.length; ++i) { | 55 for (var i = 0; i < categoryResult.ruleResults.length; ++i) { |
| 56 var ruleResult = categoryResult.ruleResults[i]; | 56 var ruleResult = categoryResult.ruleResults[i]; |
| 57 var treeElement = this._appendResult(this._treeOutline.rootElement(), ru
leResult, ruleResult.severity); | 57 var treeElement = this._appendResult(this._treeOutline.rootElement(), ru
leResult, ruleResult.severity); |
| 58 treeElement.listItemElement.classList.add("audit-result"); | 58 treeElement.listItemElement.classList.add("audit-result"); |
| 59 } | 59 } |
| 60 this.revealView(); | 60 this.revealView(); |
| 61 } | 61 }; |
| 62 | 62 |
| 63 WebInspector.AuditCategoryResultPane.prototype = { | 63 WebInspector.AuditCategoryResultPane.prototype = { |
| 64 /** | 64 /** |
| 65 * @param {!TreeElement} parentTreeNode | 65 * @param {!TreeElement} parentTreeNode |
| 66 * @param {!WebInspector.AuditRuleResult} result | 66 * @param {!WebInspector.AuditRuleResult} result |
| 67 * @param {?WebInspector.AuditRule.Severity=} severity | 67 * @param {?WebInspector.AuditRule.Severity=} severity |
| 68 */ | 68 */ |
| 69 _appendResult: function(parentTreeNode, result, severity) | 69 _appendResult: function(parentTreeNode, result, severity) |
| 70 { | 70 { |
| 71 var title = ""; | 71 var title = ""; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 99 } | 99 } |
| 100 if (result.expanded) { | 100 if (result.expanded) { |
| 101 treeElement.listItemElement.classList.remove("parent"); | 101 treeElement.listItemElement.classList.remove("parent"); |
| 102 treeElement.listItemElement.classList.add("parent-expanded"); | 102 treeElement.listItemElement.classList.add("parent-expanded"); |
| 103 treeElement.expand(); | 103 treeElement.expand(); |
| 104 } | 104 } |
| 105 return treeElement; | 105 return treeElement; |
| 106 }, | 106 }, |
| 107 | 107 |
| 108 __proto__: WebInspector.SimpleView.prototype | 108 __proto__: WebInspector.SimpleView.prototype |
| 109 } | 109 }; |
| OLD | NEW |