Title: [183786] trunk/Source/WebInspectorUI
Revision
183786
Author
[email protected]
Date
2015-05-04 18:00:49 -0700 (Mon, 04 May 2015)

Log Message

Web Inspector: Always expand initial top level DOM tree nodes when not including the root (frame views)
https://bugs.webkit.org/show_bug.cgi?id=144607

Patch by Joseph Pecoraro <[email protected]> on 2015-05-04
Reviewed by Timothy Hatcher.

* UserInterface/Views/DOMTreeOutline.js:
(WebInspector.DOMTreeOutline.prototype.update):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (183785 => 183786)


--- trunk/Source/WebInspectorUI/ChangeLog	2015-05-05 00:37:39 UTC (rev 183785)
+++ trunk/Source/WebInspectorUI/ChangeLog	2015-05-05 01:00:49 UTC (rev 183786)
@@ -1,3 +1,13 @@
+2015-05-04  Joseph Pecoraro  <[email protected]>
+
+        Web Inspector: Always expand initial top level DOM tree nodes when not including the root (frame views)
+        https://bugs.webkit.org/show_bug.cgi?id=144607
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/DOMTreeOutline.js:
+        (WebInspector.DOMTreeOutline.prototype.update):
+
 2015-05-04  Timothy Hatcher  <[email protected]>
 
         Web Inspector: Allow closing and reopening the Debugger tab

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js (183785 => 183786)


--- trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js	2015-05-05 00:37:39 UTC (rev 183785)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js	2015-05-05 01:00:49 UTC (rev 183786)
@@ -174,6 +174,9 @@
                 treeElement.selectable = this._selectEnabled;
                 this.appendChild(treeElement);
                 node = node.nextSibling;
+                
+                if (treeElement.hasChildren && !treeElement.expanded)
+                    treeElement.expand();
             }
         }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to