Web Inspector: [CSS Regions] A page with many flows should collapse the resources...
authorachicu@adobe.com <achicu@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Nov 2013 02:21:04 +0000 (02:21 +0000)
committerachicu@adobe.com <achicu@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Nov 2013 02:21:04 +0000 (02:21 +0000)
commit0419d736c829611d853dedebdbf55fb83ec196c1
tree6ec5051ec634a48ba50f6cf19bfcf5a9bdcacf23
parent8bb70d13b0b7705f0386c04ad84f4347940f14ee
Web Inspector: [CSS Regions] A page with many flows should collapse the resources tree
https://bugs.webkit.org/show_bug.cgi?id=122926

Reviewed by Timothy Hatcher.

Refactored the code in FrameTreeElement._shouldGroupIntoFolders to make it easy to track
more types of resources. Added the content flows as another type of resource that would trigger the
collapsing.

* UserInterface/DOMTreeManager.js:
(WebInspector.DOMTreeManager.prototype.namedFlowRemoved): Added code to remove the content nodes from
a flow that has been removed.
* UserInterface/FrameTreeElement.js:
(WebInspector.FrameTreeElement.prototype._shouldGroupIntoFolders.pushCategory):
(WebInspector.FrameTreeElement.prototype._shouldGroupIntoFolders.pushResourceType):
(WebInspector.FrameTreeElement.prototype._shouldGroupIntoFolders):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/DOMTreeManager.js
Source/WebInspectorUI/UserInterface/FrameTreeElement.js