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

Unified Diff: Source/devtools/front_end/elements/StylesSectionModel.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/elements/StylesSectionModel.js
diff --git a/Source/devtools/front_end/elements/StylesSectionModel.js b/Source/devtools/front_end/elements/StylesSectionModel.js
index 17db0b949589805fb7121e2c88bc9849bd06a9fa..b28723ed2aaf8a027688ad22ae47f7eafcd56426 100644
--- a/Source/devtools/front_end/elements/StylesSectionModel.js
+++ b/Source/devtools/front_end/elements/StylesSectionModel.js
@@ -328,7 +328,7 @@ WebInspector.SectionCascade._computeUsedProperties = function(styleRules, allUse
var allProperties = style.allProperties;
for (var j = 0; j < allProperties.length; ++j) {
var property = allProperties[j];
- if (!property.isLive || !property.parsedOk)
+ if (!property.activeInStyle())
continue;
// Do not pick non-inherited properties from inherited styles.

Powered by Google App Engine
This is Rietveld 408576698