| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @constructor | 32 * @constructor |
| 33 * @extends {WebInspector.TargetAware} | 33 * @extends {WebInspector.TargetAware} |
| 34 * @param {!WebInspector.Target} target | |
| 35 * @param {!WebInspector.ConsoleMessage} consoleMessage | 34 * @param {!WebInspector.ConsoleMessage} consoleMessage |
| 36 * @param {?WebInspector.Linkifier} linkifier | 35 * @param {?WebInspector.Linkifier} linkifier |
| 37 */ | 36 */ |
| 38 WebInspector.ConsoleViewMessage = function(target, consoleMessage, linkifier) | 37 WebInspector.ConsoleViewMessage = function(consoleMessage, linkifier) |
| 39 { | 38 { |
| 40 WebInspector.TargetAware.call(this, target); | 39 WebInspector.TargetAware.call(this, consoleMessage.target()); |
| 41 this._message = consoleMessage; | 40 this._message = consoleMessage; |
| 42 this._linkifier = linkifier; | 41 this._linkifier = linkifier; |
| 43 this._repeatCount = 1; | 42 this._repeatCount = 1; |
| 44 | 43 |
| 45 /** @type {!Array.<!WebInspector.DataGrid>} */ | 44 /** @type {!Array.<!WebInspector.DataGrid>} */ |
| 46 this._dataGrids = []; | 45 this._dataGrids = []; |
| 47 /** @type {!Map.<!WebInspector.DataGrid, ?Element>} */ | 46 /** @type {!Map.<!WebInspector.DataGrid, ?Element>} */ |
| 48 this._dataGridParents = new Map(); | 47 this._dataGridParents = new Map(); |
| 49 | 48 |
| 50 this._customFormatters = { | 49 this._customFormatters = { |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 return sourceString + " " + typeString + " " + levelString + ": " + this
.formattedMessage().textContent + "\n" + this._message.url + " line " + this._me
ssage.line; | 1073 return sourceString + " " + typeString + " " + levelString + ": " + this
.formattedMessage().textContent + "\n" + this._message.url + " line " + this._me
ssage.line; |
| 1075 }, | 1074 }, |
| 1076 | 1075 |
| 1077 get text() | 1076 get text() |
| 1078 { | 1077 { |
| 1079 return this._message.messageText; | 1078 return this._message.messageText; |
| 1080 }, | 1079 }, |
| 1081 | 1080 |
| 1082 __proto__: WebInspector.TargetAware.prototype | 1081 __proto__: WebInspector.TargetAware.prototype |
| 1083 } | 1082 } |
| OLD | NEW |