Commit 0236640e authored by eric@webkit.org's avatar eric@webkit.org

2010-04-04 Pavel Feldman <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: In the inherited styles, do not render non-inherited properties as overriden.

        https://bugs.webkit.org/show_bug.cgi?id=37072

        * inspector/front-end/StylesSidebarPane.js:
        (WebInspector.StylePropertiesSection.prototype.isPropertyOverloaded):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1ddf63b6
2010-04-04 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Timothy Hatcher.
Web Inspector: In the inherited styles, do not render non-inherited properties as overriden.
https://bugs.webkit.org/show_bug.cgi?id=37072
* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylePropertiesSection.prototype.isPropertyOverloaded):
2010-04-03 yael aharon <yael.aharon@nokia.com>
Reviewed by Darin Adler.
......@@ -664,6 +664,11 @@ WebInspector.StylePropertiesSection.prototype = {
if (this.computedStyle || !this._usedProperties || this.noAffect)
return false;
if (this.isInherited && !(property in WebInspector.StylesSidebarPane.InheritedProperties)) {
// In the inherited sections, only show overrides for the potentially inherited properties.
return false;
}
var used = (property in this.usedProperties);
if (used || !shorthand)
return !used;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment