Web Inspector: it should be possible to use TextViewer to display and edit both javascript and css. Currently, TextViewer can only be used when wrapped with SourceFrame. SourceFrame is mostly javascript-specific and should not be used for css editing and displaying resource contents in resources panel. We should decouple TextViewer from SourceFrame (SourceFrame knows too much about TextViewer internal details) and introduce CSSEditor class based on TextViewer. TextViewer gets a TextViewerDelegate with the following interface: - populateContextMenu, mouseDown, mouseHover, etc - editable, startEditing, finishEditing SourceFrame becomes a TextViewerDelegate implementation for viewing and editing javascript in scripts panel. Resources panel uses its own TextViewerDelegate implementations to show and edit (when applicable) css, html, xhrs etc. Any thoughts?