Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: Source/WebCore/inspector/front-end/AuditRules.js

Issue 6756040: Merge 82453 - 2011-03-30 Andrey Kosyakov <caseq@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/696/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/inspector/audits/audits-panel-functional.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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;
OLDNEW
« no previous file with comments | « LayoutTests/inspector/audits/audits-panel-functional.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698