| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 if (lastCall) | 716 if (lastCall) |
| 717 doneCallback(); | 717 doneCallback(); |
| 718 } | 718 } |
| 719 | 719 |
| 720 function getStyles(nodeIds) | 720 function getStyles(nodeIds) |
| 721 { | 721 { |
| 722 for (var i = 0; i < nodeIds.length; ++i) | 722 for (var i = 0; i < nodeIds.length; ++i) |
| 723 WebInspector.cssModel.getStylesAsync(nodeIds[i], imageStylesRead
y.bind(this, nodeIds[i], i === nodeIds.length - 1)); | 723 WebInspector.cssModel.getStylesAsync(nodeIds[i], imageStylesRead
y.bind(this, nodeIds[i], i === nodeIds.length - 1)); |
| 724 } | 724 } |
| 725 | 725 |
| 726 DOMAgent.querySelectorAll(0, "img[src]", true, getStyles); | 726 function getImages() |
| 727 { |
| 728 DOMAgent.querySelectorAll(0, "img[src]", true, getStyles); |
| 729 } |
| 730 |
| 731 WebInspector.domAgent.requestDocument(getImages); |
| 727 } | 732 } |
| 728 } | 733 } |
| 729 | 734 |
| 730 WebInspector.AuditRules.ImageDimensionsRule.prototype.__proto__ = WebInspector.A
uditRule.prototype; | 735 WebInspector.AuditRules.ImageDimensionsRule.prototype.__proto__ = WebInspector.A
uditRule.prototype; |
| 731 | 736 |
| 732 | 737 |
| 733 WebInspector.AuditRules.CssInHeadRule = function() | 738 WebInspector.AuditRules.CssInHeadRule = function() |
| 734 { | 739 { |
| 735 WebInspector.AuditRule.call(this, "page-cssinhead", "Put CSS in the document
head"); | 740 WebInspector.AuditRule.call(this, "page-cssinhead", "Put CSS in the document
head"); |
| 736 } | 741 } |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 result.violationCount = badUrls.length; | 1039 result.violationCount = badUrls.length; |
| 1035 }, | 1040 }, |
| 1036 | 1041 |
| 1037 _collectorCallback: function(matchingResourceData, resource, cookie) | 1042 _collectorCallback: function(matchingResourceData, resource, cookie) |
| 1038 { | 1043 { |
| 1039 matchingResourceData[resource.url] = (matchingResourceData[resource.url]
|| 0) + cookie.size; | 1044 matchingResourceData[resource.url] = (matchingResourceData[resource.url]
|| 0) + cookie.size; |
| 1040 } | 1045 } |
| 1041 } | 1046 } |
| 1042 | 1047 |
| 1043 WebInspector.AuditRules.StaticCookielessRule.prototype.__proto__ = WebInspector.
AuditRules.CookieRuleBase.prototype; | 1048 WebInspector.AuditRules.StaticCookielessRule.prototype.__proto__ = WebInspector.
AuditRules.CookieRuleBase.prototype; |
| OLD | NEW |