Skip to content

Commit c3c28fa

Browse files
JosephPecorarowebkit-commit-queue
authored andcommitted
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 <pecoraro@apple.com> on 2015-05-04 Reviewed by Timothy Hatcher. * UserInterface/Views/DOMTreeOutline.js: (WebInspector.DOMTreeOutline.prototype.update): Canonical link: https://commits.webkit.org/162621@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent dcf34b4 commit c3c28fa

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Source/WebInspectorUI/ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2015-05-04 Joseph Pecoraro <pecoraro@apple.com>
2+
3+
Web Inspector: Always expand initial top level DOM tree nodes when not including the root (frame views)
4+
https://bugs.webkit.org/show_bug.cgi?id=144607
5+
6+
Reviewed by Timothy Hatcher.
7+
8+
* UserInterface/Views/DOMTreeOutline.js:
9+
(WebInspector.DOMTreeOutline.prototype.update):
10+
111
2015-05-04 Timothy Hatcher <timothy@apple.com>
212

313
Web Inspector: Allow closing and reopening the Debugger tab

Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ WebInspector.DOMTreeOutline = class DOMTreeOutline extends WebInspector.TreeOutl
174174
treeElement.selectable = this._selectEnabled;
175175
this.appendChild(treeElement);
176176
node = node.nextSibling;
177+
178+
if (treeElement.hasChildren && !treeElement.expanded)
179+
treeElement.expand();
177180
}
178181
}
179182

0 commit comments

Comments
 (0)