WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
57941
Web Inspector: it should be possible to use TextViewer to display and edit both javascript and css.
https://bugs.webkit.org/show_bug.cgi?id=57941
Summary
Web Inspector: it should be possible to use TextViewer to display and edit bo...
Pavel Podivilov
Reported
2011-04-06 05:43:13 PDT
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?
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug