Chromium Code Reviews| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 if (this._request.failed) | 142 if (this._request.failed) |
| 143 this._messageElement.appendChild(document.createTextNode (" " + this._request.localizedFailDescription)); | 143 this._messageElement.appendChild(document.createTextNode (" " + this._request.localizedFailDescription)); |
| 144 else | 144 else |
| 145 this._messageElement.appendChild(document.createTextNode (" " + this._request.statusCode + " (" + this._request.statusText + ")")); | 145 this._messageElement.appendChild(document.createTextNode (" " + this._request.statusCode + " (" + this._request.statusText + ")")); |
| 146 } else { | 146 } else { |
| 147 var fragment = WebInspector.linkifyStringAsFragmentWithCusto mLinkifier(this._messageText, WebInspector.linkifyRequestAsNode.bind(null, this. _request, "")); | 147 var fragment = WebInspector.linkifyStringAsFragmentWithCusto mLinkifier(this._messageText, WebInspector.linkifyRequestAsNode.bind(null, this. _request, "")); |
| 148 this._messageElement.appendChild(fragment); | 148 this._messageElement.appendChild(fragment); |
| 149 } | 149 } |
| 150 } else { | 150 } else { |
| 151 if (this.url) { | 151 if (this.url) { |
| 152 var isExternal = !WebInspector.resourceForURL(this.url); | 152 var isExternal = !WebInspector.resourceForURL(this.url) && ! WebInspector.workspace.uiSourceCodeForURL(this.url); |
|
apavlov
2013/05/29 13:58:05
This seems unrelated?
| |
| 153 this._anchorElement = WebInspector.linkifyURLAsNode(this.url , this.url, "console-message-url", isExternal); | 153 this._anchorElement = WebInspector.linkifyURLAsNode(this.url , this.url, "console-message-url", isExternal); |
| 154 } | 154 } |
| 155 this._messageElement = this._format([this._messageText]); | 155 this._messageElement = this._format([this._messageText]); |
| 156 } | 156 } |
| 157 } else { | 157 } else { |
| 158 var args = this._parameters || [this._messageText]; | 158 var args = this._parameters || [this._messageText]; |
| 159 this._messageElement = this._format(args); | 159 this._messageElement = this._format(args); |
| 160 } | 160 } |
| 161 | 161 |
| 162 if (this.source !== WebInspector.ConsoleMessage.MessageSource.Network || this._request) { | 162 if (this.source !== WebInspector.ConsoleMessage.MessageSource.Network || this._request) { |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 928 /** | 928 /** |
| 929 * @return {WebInspector.ConsoleMessage} | 929 * @return {WebInspector.ConsoleMessage} |
| 930 */ | 930 */ |
| 931 clone: function() | 931 clone: function() |
| 932 { | 932 { |
| 933 return WebInspector.ConsoleMessage.create(this.source, this.level, this. _messageText, this.type, this.url, this.line, this.repeatCount, this._parameters , this._stackTrace, this._request ? this._request.requestId : undefined, this._i sOutdated); | 933 return WebInspector.ConsoleMessage.create(this.source, this.level, this. _messageText, this.type, this.url, this.line, this.repeatCount, this._parameters , this._stackTrace, this._request ? this._request.requestId : undefined, this._i sOutdated); |
| 934 }, | 934 }, |
| 935 | 935 |
| 936 __proto__: WebInspector.ConsoleMessage.prototype | 936 __proto__: WebInspector.ConsoleMessage.prototype |
| 937 } | 937 } |
| OLD | NEW |