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

Unified Diff: Source/devtools/front_end/audits/AuditRules.js

Issue 1308663002: DevTools: simplify WI.CSSProperty and WI.CSSStyleDeclaration interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
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 d14dcc89d5154fa6becbb892410113aec7286ca4..ae6c56fc99e5c588d7e953e1535dcd4e35b081cc 100644
--- a/Source/devtools/front_end/audits/AuditRules.js
+++ b/Source/devtools/front_end/audits/AuditRules.js
@@ -901,8 +901,8 @@ WebInspector.AuditRules.ImageDimensionsRule.prototype = {
return;
if (styles.attributesStyle) {
- var widthFound = !!styles.attributesStyle.getLiveProperty("width");
- var heightFound = !!styles.attributesStyle.getLiveProperty("height");
+ var widthFound = !!styles.attributesStyle.getPropertyValue("width");
+ var heightFound = !!styles.attributesStyle.getPropertyValue("height");
}
var inlineStyle = styles.inlineStyle;

Powered by Google App Engine
This is Rietveld 408576698