Closed Bug 1126145 Opened 6 years ago Closed 6 years ago

include style sheet URL and line number in rules output by nsStyleContext::List

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: heycam, Assigned: heycam)

Details

Attachments

(1 file)

Sometimes it's handy to know where a given rule came from, when debugging by calling nsStyleContext::List, so let's output the style sheet URL and line number.
Attached patch patchSplinter Review
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #8555020 - Flags: review?(dbaron)
Comment on attachment 8555020 [details] [diff] [review]
patch

Maybe use " line " instead of ':'?

r=dbaron
Attachment #8555020 - Flags: review?(dbaron) → review+
I think ':' is standard enough.  (Devtools uses that format too in their list of rules matching an element.)
https://hg.mozilla.org/mozilla-central/rev/daaf6d3b3db9
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.