| Summary: | Web Inspector: Special Logs to Console that do not have an expression should be styled differently, looks like code | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||||||||
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | commit-queue, graouts, hi, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Joseph Pecoraro
2015-04-16 13:01:23 PDT
Created attachment 256492 [details]
Patch
Comment on attachment 256492 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256492&action=review > Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.css:32 > +.console-user-command.special-user-log { I am not sure that this is the best styling here, but it's a start and doesn't look to bad at that. Comment on attachment 256492 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256492&action=review >> Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.css:32 >> +.console-user-command.special-user-log { > > I am not sure that this is the best styling here, but it's a start and doesn't look to bad at that. A token (rounded box with colored background) is something we talked about doing here. Like email addresses in Mail. Created attachment 256495 [details]
Patch
Created attachment 256496 [details]
After Patch is applied
Comment on attachment 256495 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256495&action=review > Source/WebInspectorUI/UserInterface/Controllers/JavaScriptLogViewController.js:126 > - var commandMessageView = new WebInspector.ConsoleCommandView(text); > + var commandMessageView = new WebInspector.ConsoleCommandView(text, "special-user-log"); Two called of appendImmediateExecutionWithResult actually pass a JS property path as the text, so those cases should not get "special-user-log". You likely need to add a parameter to appendImmediateExecutionWithResult to toggle this class as needed. The callers do this: var text = isImpossible ? WebInspector.UIString("Selected Value") : propertyPath.displayPath(this.propertyPathType()); Created attachment 256507 [details]
Patch
Comment on attachment 256507 [details] Patch Clearing flags on attachment: 256507 Committed r186634: <http://trac.webkit.org/changeset/186634> All reviewed patches have been landed. Closing bug. |