2007-04-24 Mitz Pettel <mitz@webkit.org>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2007 12:25:05 +0000 (12:25 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2007 12:25:05 +0000 (12:25 +0000)
        Reviewed by Timothy Hatcher.

        - fix http://bugs.webkit.org/show_bug.cgi?id=13459
          The "mapped style" link next to an attribute doesn't work

        * WebInspector/webInspector/inspector.js: Added a check that the rule is
        mapped from an attribute.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21067 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebInspector/webInspector/inspector.js

index 04e864f..b40e13b 100644 (file)
@@ -1,3 +1,13 @@
+2007-04-24  Mitz Pettel  <mitz@webkit.org>
+
+        Reviewed by Timothy Hatcher.
+
+        - fix http://bugs.webkit.org/show_bug.cgi?id=13459
+          The "mapped style" link next to an attribute doesn't work
+
+        * WebInspector/webInspector/inspector.js: Added a check that the rule is
+        mapped from an attribute.
+
 2007-04-23  Adele Peterson  <adele@apple.com>
 
         Fixed and reviewed by Darin, Adele, and Oliver.
index 4b8e73f..4eb7d90 100644 (file)
@@ -1113,7 +1113,7 @@ function selectMappedStyleRule(attrName)
 
     var attrName = attrName.toLowerCase();
     for (var i = 0; i < styleRules.length; ++i)
-        if (styleRules[i].attrName.toLowerCase() === attrName)
+        if (styleRules[i].attrName && styleRules[i].attrName.toLowerCase() === attrName)
             break;
 
     selectedStyleRuleIndex = i;