Commit 75c3d576 authored by timothy@apple.com's avatar timothy@apple.com

Reviewed by Sam Weinig.

        * page/inspector/StylesSidebarPane.js: Fix the wording of a comment
          and switch over to use getUniqueProperties in another place.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0be8d5fe
2007-11-10 Timothy Hatcher <timothy@apple.com>
Reviewed by Sam Weinig.
* page/inspector/StylesSidebarPane.js: Fix the wording of a comment
and switch over to use getUniqueProperties in another place.
2007-11-10 John Sullivan <sullivan@apple.com>
Reviewed by Sam Weinig
......
......@@ -119,7 +119,7 @@ WebInspector.StylesSidebarPane.prototype = {
if (!priorityUsed && style.getPropertyPriority(name).length)
priorityUsed = true;
// If the property name is already used by another rule this is rule's
// If the property name is already used by another rule then this rule's
// property is overloaded, so don't add it to the rule's usedProperties.
if (!(name in usedProperties))
styleRule.usedProperties[name] = true;
......@@ -152,17 +152,10 @@ WebInspector.StylesSidebarPane.prototype = {
if (styleRules[i].computedStyle)
continue;
var foundProperties = {};
var style = styleRules[i].style;
for (var j = 0; j < style.length; ++j) {
var name = style[j];
// Skip duplicate properties in the same rule.
if (name in foundProperties)
continue;
foundProperties[name] = true;
var uniqueProperties = style.getUniqueProperties();
for (var j = 0; j < uniqueProperties.length; ++j) {
var name = uniqueProperties[j];
if (style.getPropertyPriority(name).length) {
if (!(name in foundPriorityProperties))
styleRules[i].usedProperties[name] = true;
......
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