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 2fbe3c46ffff3dfe8911620c227e835b3a6bb2a7..5d689886d49916dc3265d1d1999ccc607b0e1514 100644 |
--- a/Source/devtools/front_end/elements/StylesSectionModel.js |
+++ b/Source/devtools/front_end/elements/StylesSectionModel.js |
@@ -160,13 +160,23 @@ WebInspector.StylesSectionModel.prototype = { |
* @param {string} propertyName |
* @return {boolean} |
*/ |
- isPropertyOverloaded: function(propertyName) |
+ isPropertyInCascade: function(propertyName) |
{ |
if (!this.hasMatchingSelectors()) |
return false; |
if (this.inherited() && !WebInspector.CSSMetadata.isPropertyInherited(propertyName)) |
return false; |
+ return true; |
+ }, |
+ /** |
+ * @param {string} propertyName |
+ * @return {boolean} |
+ */ |
+ isPropertyOverloaded: function(propertyName) |
+ { |
+ if (!this.isPropertyInCascade(propertyName)) |
+ return false; |
var usedProperties = this._cascade._usedPropertiesForModel(this); |
var canonicalName = WebInspector.CSSMetadata.canonicalPropertyName(propertyName); |
return !usedProperties.has(canonicalName); |