Closed Bug 1056990 Opened 10 years ago Closed 10 years ago

[rule view] Highlight all nodes that match the hovered selector in the rule-view

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 34

People

(Reporter: pbro, Assigned: pbro)

References

Details

Attachments

(1 file)

Same as bug 971662 but for the rule-view.

Hovering over any selector in the rule-view should highlight the matching nodes in the page.
Assignee: nobody → pbrosset
Status: NEW → ASSIGNED
v1. Should work. And has tests.
Pending try build: https://tbpl.mozilla.org/?tree=Try&rev=b6bc27d86794
Attachment #8476905 - Flags: review?(mratcliffe)
I hope I didn't miss anything obvious ... I have a strange feeling, this patch took only 1 hour altogether and was surprisingly simple. I guess it's the recent refactors of the style-inspector and highlighter that pay off :)
Comment on attachment 8476905 [details] [diff] [review]
bug1056990-highlight-selectors-ruleview v1.patch

Review of attachment 8476905 [details] [diff] [review]:
-----------------------------------------------------------------

The patch is simple and works well.

If we do this in the rule view should also do it in the computed view.
Attachment #8476905 - Flags: review?(mratcliffe) → review+
Thanks for the review Mike.
The patch doesn't make any assumption about which view the mouse is currently hovering over, so this could work with any other views that have selectors in them. The computed view doesn't though, so for now, it's only the rule-view.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/fd9c52c35d50
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 34
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #3)
> If we do this in the rule view should also do it in the computed view.
Sorry, you were completely right, we do have selectors in the computed view. I'm going to file a new bug for this.
See Also: → 1059360
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: