Changeset 186634 in webkit
- Timestamp:
- Jul 9, 2015 2:54:11 PM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r186602 r186634 1 2015-07-09 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Special Logs to Console that do not have an expression should be styled differently, looks like code 4 https://bugs.webkit.org/show_bug.cgi?id=143840 5 6 Reviewed by Timothy Hatcher. 7 8 * UserInterface/Controllers/JavaScriptLogViewController.js: 9 (WebInspector.WebInspector.JavaScriptLogViewController.appendImmediateExecutionWithResult): 10 Now applies a class to special logs initiated by the user (log element, log object, etc). 11 * UserInterface/Views/ConsoleCommandView.js: 12 (WebInspector.ConsoleCommandView): Added className parameter. 13 * UserInterface/Views/ConsoleMessageView.css: 14 (.console-user-command.selected-element-log): 15 (.console-user-command.special-user-log > .console-message-text): 16 * UserInterface/Views/DOMTreeOutline.js: 17 (WebInspector.DOMTreeOutline.prototype._populateContextMenu.logElement): 18 (WebInspector.DOMTreeOutline.prototype._populateContextMenu): 19 * UserInterface/Views/ObjectPreviewView.js: 20 (WebInspector.ObjectPreviewView.prototype._contextMenuHandler): 21 * UserInterface/Views/ObjectTreeBaseTreeElement.js: 22 (WebInspector.ObjectTreeBaseTreeElement.prototype._logSymbolProperty): 23 (WebInspector.ObjectTreeBaseTreeElement.prototype._logValue): 24 1 25 2015-07-09 Devin Rousso <drousso@apple.com> 2 26 -
trunk/Source/WebInspectorUI/UserInterface/Controllers/JavaScriptLogViewController.js
r186283 r186634 120 120 } 121 121 122 appendImmediateExecutionWithResult(text, result )122 appendImmediateExecutionWithResult(text, result, addSpecialUserLogClass) 123 123 { 124 124 console.assert(result instanceof WebInspector.RemoteObject); 125 125 126 var commandMessageView = new WebInspector.ConsoleCommandView(text );126 var commandMessageView = new WebInspector.ConsoleCommandView(text, addSpecialUserLogClass ? "special-user-log" : null); 127 127 this._appendConsoleMessageView(commandMessageView, true); 128 128 -
trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleCommandView.js
r182579 r186634 30 30 WebInspector.ConsoleCommandView = class ConsoleCommandView extends WebInspector.Object 31 31 { 32 constructor(commandText )32 constructor(commandText, className) 33 33 { 34 34 super(); … … 39 39 this._element.classList.add("console-user-command"); 40 40 this._element.setAttribute("data-labelprefix", WebInspector.UIString("Input: ")); 41 42 if (className) 43 this._element.classList.add(className); 41 44 42 45 this._formattedCommandElement = this._element.appendChild(document.createElement("span")); -
trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.css
r185835 r186634 30 30 } 31 31 32 .console-user-command.special-user-log > .console-message-text { 33 padding: 1px 6px; 34 border-radius: 3px; 35 border: 1px solid transparent; 36 background-color: rgb(34, 131, 246); 37 color: white; 38 font-size: 10px; 39 -webkit-user-select: none; 40 } 41 32 42 .console-message .repeat-count { 33 43 display: inline-block; -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js
r185485 r186634 513 513 return; 514 514 var text = WebInspector.UIString("Selected Element"); 515 WebInspector.consoleLogViewController.appendImmediateExecutionWithResult(text, remoteObject );515 WebInspector.consoleLogViewController.appendImmediateExecutionWithResult(text, remoteObject, true); 516 516 }); 517 517 } -
trunk/Source/WebInspectorUI/UserInterface/Views/ObjectPreviewView.js
r185886 r186634 264 264 WebInspector.quickConsole.prompt.pushHistoryItem(text); 265 265 266 WebInspector.consoleLogViewController.appendImmediateExecutionWithResult(text, this._remoteObject );266 WebInspector.consoleLogViewController.appendImmediateExecutionWithResult(text, this._remoteObject, isImpossible); 267 267 }.bind(this)); 268 268 -
trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeBaseTreeElement.js
r186466 r186634 162 162 163 163 var text = WebInspector.UIString("Selected Symbol"); 164 WebInspector.consoleLogViewController.appendImmediateExecutionWithResult(text, symbol );164 WebInspector.consoleLogViewController.appendImmediateExecutionWithResult(text, symbol, true); 165 165 } 166 166 … … 178 178 WebInspector.quickConsole.prompt.pushHistoryItem(text); 179 179 180 WebInspector.consoleLogViewController.appendImmediateExecutionWithResult(text, resolvedValue );180 WebInspector.consoleLogViewController.appendImmediateExecutionWithResult(text, resolvedValue, isImpossible); 181 181 } 182 182
Note: See TracChangeset
for help on using the changeset viewer.