Web Inspector: Sources: Give Origins their own icon in the Sources sidebar
authorpecoraro@apple.com <pecoraro@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Aug 2019 19:17:59 +0000 (19:17 +0000)
committerpecoraro@apple.com <pecoraro@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Aug 2019 19:17:59 +0000 (19:17 +0000)
commit4ddefbfa227d668efa76d8ee50f1d38e6440fcda
treef823917d82d1ec8678428dae43fab36fc1a6bd9c
parent4f83b9d7d3adfe2caa08cb7b48fbd328631eaa91
Web Inspector: Sources: Give Origins their own icon in the Sources sidebar
https://bugs.webkit.org/show_bug.cgi?id=200683
<rdar://problem/54269044>

Reviewed by Devin Rousso.

* UserInterface/Images/Origin.svg: Added.
* UserInterface/Main.html:
New resources.

* UserInterface/Views/FolderIcon.css:
(.origin-icon .icon):
Light and Dark appearances for Origin icons.

(@media (prefers-color-scheme: dark)):
* UserInterface/Views/OriginTreeElement.js:
(WI.OriginTreeElement):
Very much like a folder with different classes.

* UserInterface/Views/SourcesNavigationSidebarPanel.js:
(WI.SourcesNavigationSidebarPanel.prototype.matchTreeElementAgainstCustomFilters.match):
(WI.SourcesNavigationSidebarPanel.prototype.matchTreeElementAgainstCustomFilters):
(WI.SourcesNavigationSidebarPanel.prototype._compareTreeElements):
(WI.SourcesNavigationSidebarPanel.prototype._handleResourceGroupingModeChanged):
Use OriginTreeElement in a few places.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Images/Origin.svg [new file with mode: 0644]
Source/WebInspectorUI/UserInterface/Main.html
Source/WebInspectorUI/UserInterface/Views/FolderIcon.css
Source/WebInspectorUI/UserInterface/Views/OriginTreeElement.js [new file with mode: 0644]
Source/WebInspectorUI/UserInterface/Views/SourcesNavigationSidebarPanel.js