Web Inspector: Combine similar SVG files for Styles sidebar
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Sep 2016 03:29:04 +0000 (03:29 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Sep 2016 03:29:04 +0000 (03:29 +0000)
commitd4269fbe791331e9ddfd98877e1b10ba19b7e197
tree982c0863ecfd4423160380fc76af78b37f8a71a4
parent2a058057d43963b18dfae1a8ee59eba67245cb35
Web Inspector: Combine similar SVG files for Styles sidebar
https://bugs.webkit.org/show_bug.cgi?id=161071

Patch by Devin Rousso <dcrousso+webkit@gmail.com> on 2016-09-11
Reviewed by Joseph Pecoraro.

* UserInterface/Images/StyleRule.svg: Added.
* UserInterface/Images/StyleRulePseudoElement.svg: Added.
Replaced <defs> with <symbol> give CSS some access to the referenced DOM inside <symbol>.
Since <symbol> uses Shadow DOM, applying CSS variables to the :target element and using
them inside <symbol> allows for variable styling of the content.  Using a more basic
`#foo .bar` selector would not be valid since Shadow DOM separates the stylesheet selectors.

* UserInterface/Images/gtk/StyleRule.svg: Added.
* UserInterface/Images/gtk/StyleRulePseudoElement.svg: Added.

* UserInterface/Images/StyleRuleAuthor.svg: Removed.
* UserInterface/Images/StyleRuleInherited.svg: Removed.
* UserInterface/Images/StyleRuleInspector.svg: Removed.
* UserInterface/Images/StyleRuleUser.svg: Removed.
* UserInterface/Images/StyleRuleUserAgent.svg: Removed.
* UserInterface/Images/gtk/StyleRuleAuthor.svg: Removed.
* UserInterface/Images/gtk/StyleRuleInherited.svg: Removed.
* UserInterface/Images/gtk/StyleRuleInspector.svg: Removed.
* UserInterface/Images/gtk/StyleRuleUser.svg: Removed.
* UserInterface/Images/gtk/StyleRuleUserAgent.svg: Removed.
Merged into StyleRule.svg by using IDs in the URL.

* UserInterface/Images/StyleRuleAuthorPseudo.svg: Removed.
* UserInterface/Images/StyleRuleInspectorPseudo.svg: Removed.
* UserInterface/Images/StyleRuleUserAgentPseudo.svg: Removed.
* UserInterface/Images/StyleRuleUserPseudo.svg: Removed.
Merged into StyleRulePseudoElement.svg by using IDs in the URL.

* UserInterface/Views/StyleRuleIcons.css:
(.author-style-rule-icon .icon):
(.author-style-rule-icon.pseudo-element-selector .icon):
(.user-style-rule-icon .icon):
(.user-style-rule-icon.pseudo-element-selector .icon):
(.user-agent-style-rule-icon .icon):
(.user-agent-style-rule-icon.pseudo-element-selector .icon):
(.inspector-style-rule-icon .icon):
(.inspector-style-rule-icon.pseudo-element-selector .icon):
(.inherited-style-rule-icon .icon):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@205793 268f45cc-cd09-0410-ab3c-d52691b4dbfc
20 files changed:
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Images/StyleRule.svg [new file with mode: 0644]
Source/WebInspectorUI/UserInterface/Images/StyleRuleAuthor.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/StyleRuleAuthorPseudo.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/StyleRuleInherited.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/StyleRuleInspector.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/StyleRuleInspectorPseudo.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/StyleRulePseudoElement.svg [new file with mode: 0644]
Source/WebInspectorUI/UserInterface/Images/StyleRuleUser.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/StyleRuleUserAgent.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/StyleRuleUserAgentPseudo.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/StyleRuleUserPseudo.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/gtk/StyleRule.svg [new file with mode: 0644]
Source/WebInspectorUI/UserInterface/Images/gtk/StyleRuleAuthor.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/gtk/StyleRuleInherited.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/gtk/StyleRuleInspector.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/gtk/StyleRulePseudoElement.svg [new file with mode: 0644]
Source/WebInspectorUI/UserInterface/Images/gtk/StyleRuleUser.svg [deleted file]
Source/WebInspectorUI/UserInterface/Images/gtk/StyleRuleUserAgent.svg [deleted file]
Source/WebInspectorUI/UserInterface/Views/StyleRuleIcons.css