If you copy the content of a resource in the Resources panel, you'll get the line numbers with it and that's not useful.
Not only does it include the numbers, but any non-visible 50 line chunk shows an empty 49 rows then all the content is on the 50th row.
We can use css counters to generate the content. Generated content is not copied.
<rdar://problem/7807274>
CSS did not work due to bucketing. I'll just introduce a separate table for line numbers and use absolute positioning for both: line and content tables. We are only using text viewer in absolute positioning since there are headers / content tabs in resources panel anyways.
Created attachment 52050 [details] [PATCH] Proposed change. It turned out to be more problematic than I thought: - I can't make a separate column for line numbers since row height might be defined by the messages in the right column - I can't make text transparent to the clipboard So I am re-using model's ability to copy its content...
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/inspector/front-end/TextViewer.js Committed r56799