| 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 for (var frameOwnerCandidate = node; frameOwnerCandidate; frameO
wnerCandidate = frameOwnerCandidate.parentNode) { | 890 for (var frameOwnerCandidate = node; frameOwnerCandidate; frameO
wnerCandidate = frameOwnerCandidate.parentNode) { |
| 891 if (frameOwnerCandidate.baseURL) { | 891 if (frameOwnerCandidate.baseURL) { |
| 892 var completeSrc = WebInspector.ParsedURL.completeURL(fra
meOwnerCandidate.baseURL, src); | 892 var completeSrc = WebInspector.ParsedURL.completeURL(fra
meOwnerCandidate.baseURL, src); |
| 893 break; | 893 break; |
| 894 } | 894 } |
| 895 } | 895 } |
| 896 } | 896 } |
| 897 if (completeSrc) | 897 if (completeSrc) |
| 898 src = completeSrc; | 898 src = completeSrc; |
| 899 | 899 |
| 900 if (styles.computedStyle.getPropertyValue("position") === "absolute"
) | 900 if (styles.computedStyle.get("position") === "absolute") |
| 901 return; | 901 return; |
| 902 | 902 |
| 903 if (styles.attributesStyle) { | 903 if (styles.attributesStyle) { |
| 904 var widthFound = !!styles.attributesStyle.getLiveProperty("width
"); | 904 var widthFound = !!styles.attributesStyle.getLiveProperty("width
"); |
| 905 var heightFound = !!styles.attributesStyle.getLiveProperty("heig
ht"); | 905 var heightFound = !!styles.attributesStyle.getLiveProperty("heig
ht"); |
| 906 } | 906 } |
| 907 | 907 |
| 908 var inlineStyle = styles.inlineStyle; | 908 var inlineStyle = styles.inlineStyle; |
| 909 if (inlineStyle) { | 909 if (inlineStyle) { |
| 910 if (inlineStyle.getPropertyValue("width") !== "") | 910 if (inlineStyle.getPropertyValue("width") !== "") |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 /** | 954 /** |
| 955 * @param {?WebInspector.CSSStyleModel.MatchedStyleResult} matchedSt
yleResult | 955 * @param {?WebInspector.CSSStyleModel.MatchedStyleResult} matchedSt
yleResult |
| 956 */ | 956 */ |
| 957 function matchedCallback(matchedStyleResult) | 957 function matchedCallback(matchedStyleResult) |
| 958 { | 958 { |
| 959 if (matchedStyleResult) | 959 if (matchedStyleResult) |
| 960 targetResult.matchedCSSRules = matchedStyleResult.matchedCSS
Rules; | 960 targetResult.matchedCSSRules = matchedStyleResult.matchedCSS
Rules; |
| 961 } | 961 } |
| 962 | 962 |
| 963 /** | 963 /** |
| 964 * @param {?WebInspector.CSSStyleDeclaration} computedStyle | 964 * @param {?Map.<string, string>} computedStyle |
| 965 */ | 965 */ |
| 966 function computedCallback(computedStyle) | 966 function computedCallback(computedStyle) |
| 967 { | 967 { |
| 968 targetResult.computedStyle = computedStyle; | 968 targetResult.computedStyle = computedStyle; |
| 969 } | 969 } |
| 970 | 970 |
| 971 if (!nodeIds || !nodeIds.length) | 971 if (!nodeIds || !nodeIds.length) |
| 972 doneCallback(); | 972 doneCallback(); |
| 973 | 973 |
| 974 var nodePromises = []; | 974 var nodePromises = []; |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1647 result.violationCount = badUrls.length; | 1647 result.violationCount = badUrls.length; |
| 1648 }, | 1648 }, |
| 1649 | 1649 |
| 1650 _collectorCallback: function(matchingResourceData, request, cookie) | 1650 _collectorCallback: function(matchingResourceData, request, cookie) |
| 1651 { | 1651 { |
| 1652 matchingResourceData[request.url] = (matchingResourceData[request.url] |
| 0) + cookie.size(); | 1652 matchingResourceData[request.url] = (matchingResourceData[request.url] |
| 0) + cookie.size(); |
| 1653 }, | 1653 }, |
| 1654 | 1654 |
| 1655 __proto__: WebInspector.AuditRules.CookieRuleBase.prototype | 1655 __proto__: WebInspector.AuditRules.CookieRuleBase.prototype |
| 1656 } | 1656 } |
| OLD | NEW |