Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Web Inspector: Visual Styles: Modifying background expands Font section
https://bugs.webkit.org/show_bug.cgi?id=154491 <rdar://problem/24755440> Patch by Devin Rousso <dcrousso+webkit@gmail.com> on 2016-02-20 Reviewed by Timothy Hatcher. When the user selects a new style, the Visual sidebar examines the property editors in each subsection to see if any have a value and expands/collapses the subsection accordingly. This issue was happening because that logic was also being triggered when the user didn't select a new style, which is controlled by DOMNodeStyles and the significantChange value in refresh(). * UserInterface/Base/Utilities.js: (String.prototype.toCamelCase): Added utility function to transform a string into a camel-cased version. * UserInterface/Models/DOMNodeStyles.js: (WebInspector.DOMNodeStyles.prototype.refresh.fetchedComputedStyle): Dropped unused variable and added checks to make sure doubly-matching styles don't count as a significant change and cause refreshes of the styles sidebar. * UserInterface/Views/VisualStyleDetailsPanel.js: (WebInspector.VisualStyleDetailsPanel.prototype._updateSections): If this function has an event, meaning it was triggered by a newly selected selector in the selector section, loop through each subsection and perform the logic described above, but instead only to open sections. (WebInspector.VisualStyleDetailsPanel.prototype._generateSection.replaceDashWithCapital): Deleted. (WebInspector.VisualStyleDetailsPanel.prototype._updateProperties): Removed logic that was already being called by _sectionModified(). Canonical link: https://commits.webkit.org/172609@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
eebcc2d
commit f6dac5a
Showing
4 changed files
with
77 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters