Not reviewed: follow up for r135720, fixing node highlight.
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Nov 2012 16:50:10 +0000 (16:50 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Nov 2012 16:50:10 +0000 (16:50 +0000)
* inspector/InspectorOverlayPage.html:

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

Source/WebCore/ChangeLog
Source/WebCore/inspector/InspectorOverlayPage.html

index 321ccfa..0770357 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-26  'Pavel Feldman'  <pfeldman@chromium.org>
+
+        Not reviewed: follow up for r135720, fixing node highlight.
+
+        * inspector/InspectorOverlayPage.html:
+
 2012-11-26  Viatcheslav Ostapenko  <v.ostapenko@samsung.com>
 
         [EFL] Crashes in compositing layout tests with AC on.
index fe5fe72..f984226 100644 (file)
@@ -344,9 +344,9 @@ function _drawElementTitle(highlight)
     document.getElementById("tag-name").textContent = elementInfo.tagName;
     document.getElementById("node-id").textContent = elementInfo.idValue ? "#" + elementInfo.idValue : "";
     var className = elementInfo.className;
-    if (className.length > 50)
+    if (className && className.length > 50)
        className = className.substring(0, 50) + "\u2026";
-    document.getElementById("class-name").textContent = className;
+    document.getElementById("class-name").textContent = className || "";
     document.getElementById("node-width").textContent = elementInfo.nodeWidth;
     document.getElementById("node-height").textContent = elementInfo.nodeHeight;
     var elementTitle = document.getElementById("element-title");