summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6d2f4b3)
* page/inspector/StylesSidebarPane.js: Fix the wording of a comment
and switch over to use getUniqueProperties in another place.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27677
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+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
2007-11-10 John Sullivan <sullivan@apple.com>
Reviewed by Sam Weinig
if (!priorityUsed && style.getPropertyPriority(name).length)
priorityUsed = true;
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;
// property is overloaded, so don't add it to the rule's usedProperties.
if (!(name in usedProperties))
styleRule.usedProperties[name] = true;
if (styleRules[i].computedStyle)
continue;
if (styleRules[i].computedStyle)
continue;
- var foundProperties = {};
var style = styleRules[i].style;
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;
if (style.getPropertyPriority(name).length) {
if (!(name in foundPriorityProperties))
styleRules[i].usedProperties[name] = true;