| Index: Source/devtools/front_end/audits/AuditRules.js
|
| diff --git a/Source/devtools/front_end/audits/AuditRules.js b/Source/devtools/front_end/audits/AuditRules.js
|
| index 943bf82c663e5d627e394dbf1603c6c6353e2585..b6036a5bdd9f735bb9e4323669cd14b5e8d0c284 100644
|
| --- a/Source/devtools/front_end/audits/AuditRules.js
|
| +++ b/Source/devtools/front_end/audits/AuditRules.js
|
| @@ -986,16 +986,24 @@ WebInspector.AuditRules.ImageDimensionsRule.prototype = {
|
| }
|
| var targetResult = {};
|
|
|
| - function inlineCallback(inlineStyle, attributesStyle)
|
| + /**
|
| + * @param {?WebInspector.CSSStyleModel.InlineStyleResult} inlineStyleResult
|
| + */
|
| + function inlineCallback(inlineStyleResult)
|
| {
|
| - targetResult.inlineStyle = inlineStyle;
|
| - targetResult.attributesStyle = attributesStyle;
|
| + if (!inlineStyleResult)
|
| + return;
|
| + targetResult.inlineStyle = inlineStyleResult.inlineStyle;
|
| + targetResult.attributesStyle = inlineStyleResult.attributesStyle;
|
| }
|
|
|
| - function matchedCallback(result)
|
| + /**
|
| + * @param {?WebInspector.CSSStyleModel.MatchedStyleResult} matchedStyleResult
|
| + */
|
| + function matchedCallback(matchedStyleResult)
|
| {
|
| - if (result)
|
| - targetResult.matchedCSSRules = result.matchedCSSRules;
|
| + if (matchedStyleResult)
|
| + targetResult.matchedCSSRules = matchedStyleResult.matchedCSSRules;
|
| }
|
|
|
| if (!nodeIds || !nodeIds.length)
|
|
|