| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 /** | 367 /** |
| 368 * @param {string} url | 368 * @param {string} url |
| 369 * @return {!Element} | 369 * @return {!Element} |
| 370 */ | 370 */ |
| 371 WebInspector.AuditRuleResult.linkifyDisplayName = function(url) | 371 WebInspector.AuditRuleResult.linkifyDisplayName = function(url) |
| 372 { | 372 { |
| 373 return WebInspector.linkifyURLAsNode(url, WebInspector.displayNameForURL(url
)); | 373 return WebInspector.linkifyURLAsNode(url, WebInspector.displayNameForURL(url
)); |
| 374 } | 374 } |
| 375 | 375 |
| 376 /** |
| 377 * @param {string} domain |
| 378 * @return {string} |
| 379 */ |
| 376 WebInspector.AuditRuleResult.resourceDomain = function(domain) | 380 WebInspector.AuditRuleResult.resourceDomain = function(domain) |
| 377 { | 381 { |
| 378 return domain || WebInspector.UIString("[empty domain]"); | 382 return domain || WebInspector.UIString("[empty domain]"); |
| 379 } | 383 } |
| 380 | 384 |
| 381 WebInspector.AuditRuleResult.prototype = { | 385 WebInspector.AuditRuleResult.prototype = { |
| 382 /** | 386 /** |
| 383 * @param {(string|boolean|number|!Object)} value | 387 * @param {(string|boolean|number|!Object)} value |
| 384 * @param {boolean=} expanded | 388 * @param {boolean=} expanded |
| 385 * @param {string=} className | 389 * @param {string=} className |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 */ | 523 */ |
| 520 WebInspector.AuditCategories = {}; | 524 WebInspector.AuditCategories = {}; |
| 521 | 525 |
| 522 importScript("AuditCategory.js"); | 526 importScript("AuditCategory.js"); |
| 523 importScript("AuditCategories.js"); | 527 importScript("AuditCategories.js"); |
| 524 importScript("AuditController.js"); | 528 importScript("AuditController.js"); |
| 525 importScript("AuditFormatters.js"); | 529 importScript("AuditFormatters.js"); |
| 526 importScript("AuditLauncherView.js"); | 530 importScript("AuditLauncherView.js"); |
| 527 importScript("AuditResultView.js"); | 531 importScript("AuditResultView.js"); |
| 528 importScript("AuditRules.js"); | 532 importScript("AuditRules.js"); |
| OLD | NEW |