Bug 146031 - Web Inspector: Make rule icon toggle all properties for that selector on and off
Summary: Web Inspector: Make rule icon toggle all properties for that selector on and off
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-06-16 15:27 PDT by Devin Rousso
Modified: 2015-06-19 11:51 PDT (History)
8 users (show)

See Also:


Attachments
Patch (7.38 KB, patch)
2015-06-16 15:32 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (7.43 KB, patch)
2015-06-18 13:41 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (7.46 KB, patch)
2015-06-19 11:44 PDT, Devin Rousso
timothy: review+
timothy: commit-queue+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2015-06-16 15:27:28 PDT
I think that it would be really useful to make the selector icon toggle all the properties in that rule on/off (using comments) when clicked.  Basically, clicking on the icon will cause all the properties for that rule to be commented out and the icon will become slightly opaque.  Clicking on the icon again will remove the comments on all properties and restore the icon to full visibility.  In addition, this will preserve non-property comments.
Comment 1 Radar WebKit Bug Importer 2015-06-16 15:27:44 PDT
<rdar://problem/21410966>
Comment 2 Devin Rousso 2015-06-16 15:32:42 PDT
Created attachment 254972 [details]
Patch
Comment 3 Timothy Hatcher 2015-06-18 11:12:19 PDT
Comment on attachment 254972 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=254972&action=review

> Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.css:72
> +    cursor: pointer;

This should be a normal cursor. We can use a hover darkening of the icon to indicate clicking behavior.

> Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js:234
> +        function uncommentProperties(properties) {

Two lines.
Comment 4 Devin Rousso 2015-06-18 13:41:07 PDT
Created attachment 255129 [details]
Patch
Comment 5 WebKit Commit Bot 2015-06-18 14:53:03 PDT
Comment on attachment 255129 [details]
Patch

Rejecting attachment 255129 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 255129, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
imothy Hatcher']" exit_code: 255 cwd: /Volumes/Data/EWS/WebKit

Parsed 5 diffs from patch file(s).
patching file Source/WebInspectorUI/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
Original content of Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js mismatches at /Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply line 280.

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Timothy Hatcher']" exit_code: 255 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.appspot.com/results/5111003557658624
Comment 6 Devin Rousso 2015-06-19 11:44:39 PDT
Created attachment 255206 [details]
Patch
Comment 7 Joseph Pecoraro 2015-06-19 11:51:49 PDT
http://trac.webkit.org/changeset/185757