OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 * @param {?WebInspector.ConsoleCommand} originatingCommand | 1039 * @param {?WebInspector.ConsoleCommand} originatingCommand |
1040 * @param {!WebInspector.Linkifier} linkifier | 1040 * @param {!WebInspector.Linkifier} linkifier |
1041 * @param {string=} url | 1041 * @param {string=} url |
1042 * @param {number=} lineNumber | 1042 * @param {number=} lineNumber |
1043 * @param {number=} columnNumber | 1043 * @param {number=} columnNumber |
1044 */ | 1044 */ |
1045 WebInspector.ConsoleCommandResult = function(result, wasThrown, originatingComma
nd, linkifier, url, lineNumber, columnNumber) | 1045 WebInspector.ConsoleCommandResult = function(result, wasThrown, originatingComma
nd, linkifier, url, lineNumber, columnNumber) |
1046 { | 1046 { |
1047 this.originatingCommand = originatingCommand; | 1047 this.originatingCommand = originatingCommand; |
1048 var level = wasThrown ? WebInspector.ConsoleMessage.MessageLevel.Error : Web
Inspector.ConsoleMessage.MessageLevel.Log; | 1048 var level = wasThrown ? WebInspector.ConsoleMessage.MessageLevel.Error : Web
Inspector.ConsoleMessage.MessageLevel.Log; |
1049 var message = new WebInspector.ConsoleMessage(WebInspector.ConsoleMessage.Me
ssageSource.JS, level, "", WebInspector.ConsoleMessage.MessageType.Result, url,
lineNumber, columnNumber, undefined, undefined, [result]); | 1049 var message = new WebInspector.ConsoleMessage(WebInspector.ConsoleMessage.Me
ssageSource.JS, level, "", WebInspector.ConsoleMessage.MessageType.Result, url,
lineNumber, columnNumber, undefined, [result]); |
1050 WebInspector.ConsoleViewMessage.call(this, message, linkifier); | 1050 WebInspector.ConsoleViewMessage.call(this, message, linkifier); |
1051 } | 1051 } |
1052 | 1052 |
1053 WebInspector.ConsoleCommandResult.prototype = { | 1053 WebInspector.ConsoleCommandResult.prototype = { |
1054 /** | 1054 /** |
1055 * @override | 1055 * @override |
1056 * @param {!WebInspector.RemoteObject} array | 1056 * @param {!WebInspector.RemoteObject} array |
1057 * @return {boolean} | 1057 * @return {boolean} |
1058 */ | 1058 */ |
1059 useArrayPreviewInFormatter: function(array) | 1059 useArrayPreviewInFormatter: function(array) |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 var node = this.messagesElement.firstChild; | 1145 var node = this.messagesElement.firstChild; |
1146 while (node) { | 1146 while (node) { |
1147 if (node.classList.contains("console-message") && node.message) | 1147 if (node.classList.contains("console-message") && node.message) |
1148 node.message.wasShown(); | 1148 node.message.wasShown(); |
1149 if (node.classList.contains("console-group") && node.group) | 1149 if (node.classList.contains("console-group") && node.group) |
1150 node.group.wasShown(); | 1150 node.group.wasShown(); |
1151 node = node.nextSibling; | 1151 node = node.nextSibling; |
1152 } | 1152 } |
1153 } | 1153 } |
1154 } | 1154 } |
OLD | NEW |