Reviewed by Tim Hatcher.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Jul 2006 07:07:12 +0000 (07:07 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Jul 2006 07:07:12 +0000 (07:07 +0000)
        * WebInspector/webInspector/inspector.js: Fix bug where a null property value
        leads to an empty style pane.

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

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

index 26233567a19998ad3980e777308fb77f8fb887e4..df6ea54165152525dd476a73f87e17af3e1bf088 100644 (file)
@@ -1,3 +1,10 @@
+2006-07-30  Darin Adler  <darin@apple.com>
+
+        Reviewed by Tim Hatcher.
+
+        * WebInspector/webInspector/inspector.js: Fix bug where a null property value
+        leads to an empty style pane.
+
 2006-07-30  Darin Adler  <darin@apple.com>
 
         Reviewed by Tim Hatcher.
index 3c8b6bfd1252fbd6007bfe785f9893a28bf1aa2d..f4154fe51a1653bf4478f14f0da4b48c2154e9ce 100644 (file)
@@ -641,13 +641,15 @@ function styleRuleSelect(event)
 
 function populateStyleListItem(li, prop, name)
 {
-    var value = prop.style.getPropertyValue(name);
-
     var span = document.createElement("span");
     span.className = "property";
     span.textContent = name;
     li.appendChild(span);
 
+    var value = prop.style.getPropertyValue(name);
+    if (!value)
+        return;
+
     span = document.createElement("span");
     span.className = "value";
     var textValue = valueNickname[value] ? valueNickname[value] : value;