Title: [102701] trunk/Source/WebCore
Revision
102701
Author
[email protected]
Date
2011-12-13 13:27:15 -0800 (Tue, 13 Dec 2011)

Log Message

Web Inspector: [Regression] ResourceHeadersView sections should be expanded by default.
https://bugs.webkit.org/show_bug.cgi?id=74434

Reviewed by Pavel Feldman.

* inspector/front-end/treeoutline.js:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (102700 => 102701)


--- trunk/Source/WebCore/ChangeLog	2011-12-13 21:23:02 UTC (rev 102700)
+++ trunk/Source/WebCore/ChangeLog	2011-12-13 21:27:15 UTC (rev 102701)
@@ -1,5 +1,14 @@
 2011-12-13  Vsevolod Vlasov  <[email protected]>
 
+        Web Inspector: [Regression] ResourceHeadersView sections should be expanded by default.
+        https://bugs.webkit.org/show_bug.cgi?id=74434
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/treeoutline.js:
+
+2011-12-13  Vsevolod Vlasov  <[email protected]>
+
         Web Inspector: Network item view does not correctly decode "+" in request parameters.
         https://bugs.webkit.org/show_bug.cgi?id=74422
 

Modified: trunk/Source/WebCore/inspector/front-end/treeoutline.js (102700 => 102701)


--- trunk/Source/WebCore/inspector/front-end/treeoutline.js	2011-12-13 21:23:02 UTC (rev 102700)
+++ trunk/Source/WebCore/inspector/front-end/treeoutline.js	2011-12-13 21:27:15 UTC (rev 102701)
@@ -97,7 +97,8 @@
         current = current.traverseNextTreeElement(false, child, true);
     }
 
-    child.expanded = child.hasChildren && !!child.treeOutline._expandedStateMap.get(child.representedObject);
+    if (child.hasChildren && typeof(child.treeOutline._expandedStateMap.get(child.representedObject)) !== "undefined")
+        child.expanded = child.treeOutline._expandedStateMap.get(child.representedObject);
 
     if (!this._childrenListNode) {
         this._childrenListNode = this.treeOutline._childrenListNode.ownerDocument.createElement("ol");
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to