Closed Bug 59560 Opened 24 years ago Closed 24 years ago

store line numbers with css style rules

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: hewitt, Assigned: pierre)

Details

It would be very handy information for css debugging tools to be able to retrieve the line number at which a css style rule was read from in it's source file. David Baron has already written code to store this information. I've simply changed his code so that it is not #ifdef'd out, and is permanent in the API, as well as adding public methods to nsICSSStyleRule for getting and setting the line number. I'll attach the patch for this in a moment, but first a few notes on it. The changes I made to dbaron's code were simply to take out from his #ifdef blocks all things related to line number, but I didn't take out the code for storing column number or file uri. His "CSS_REPORT_PARSE_ERRORS" should still work in full when turned on. I apologize for this, but the patch is convoluted with another fix for bug #52381 which overlaps some files. You may just want to test them both out at once. I'm too lazy to separate them and make 2 patches, and I don't think it will matter much.
I've posted the patch for this to Bug 52381 .
Netscape's standard compliance QA team reorganised itself once again, so taking remaining non-tables style bugs. Sorry about the spam. I tried to get this done directly at the database level, but apparently that is "not easy because of the shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
This got fixed when 52381 got fixed.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified that dom inspector uses this
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.