Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 199 */ | 199 */ |
| 200 linkifyConsoleCallFrame: function(target, callFrame, classes) | 200 linkifyConsoleCallFrame: function(target, callFrame, classes) |
| 201 { | 201 { |
| 202 // FIXME(62725): console stack trace line/column numbers are one-based. | 202 // FIXME(62725): console stack trace line/column numbers are one-based. |
| 203 var lineNumber = callFrame.lineNumber ? callFrame.lineNumber - 1 : 0; | 203 var lineNumber = callFrame.lineNumber ? callFrame.lineNumber - 1 : 0; |
| 204 var columnNumber = callFrame.columnNumber ? callFrame.columnNumber - 1 : 0; | 204 var columnNumber = callFrame.columnNumber ? callFrame.columnNumber - 1 : 0; |
| 205 var anchor = this.linkifyScriptLocation(target, callFrame.scriptId, call Frame.url, lineNumber, columnNumber, classes); | 205 var anchor = this.linkifyScriptLocation(target, callFrame.scriptId, call Frame.url, lineNumber, columnNumber, classes); |
| 206 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); | 206 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); |
| 207 var script = debuggerModel && debuggerModel.scriptForId(callFrame.script Id); | 207 var script = debuggerModel && debuggerModel.scriptForId(callFrame.script Id); |
| 208 var blackboxed = script ? | 208 var blackboxed = script ? |
| 209 WebInspector.BlackboxSupport.isBlackboxed(script.sourceURL, script.i sContentScript()) : | 209 WebInspector.blackboxManager.isBlackboxedScript(script) : |
|
dgozman
2016/02/09 23:44:51
Same as before.
kozy
2016/02/10 01:19:41
Done.
| |
| 210 WebInspector.BlackboxSupport.isBlackboxedURL(callFrame.url); | 210 WebInspector.blackboxManager.isBlackboxedURL(callFrame.url); |
| 211 if (blackboxed) | 211 if (blackboxed) |
| 212 anchor.classList.add("webkit-html-blackbox-link"); | 212 anchor.classList.add("webkit-html-blackbox-link"); |
| 213 | 213 |
| 214 return anchor; | 214 return anchor; |
| 215 }, | 215 }, |
| 216 | 216 |
| 217 /** | 217 /** |
| 218 * @param {!WebInspector.CSSLocation} rawLocation | 218 * @param {!WebInspector.CSSLocation} rawLocation |
| 219 * @param {string=} classes | 219 * @param {string=} classes |
| 220 * @return {!Element} | 220 * @return {!Element} |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 541 /** | 541 /** |
| 542 * @param {!WebInspector.NetworkRequest} request | 542 * @param {!WebInspector.NetworkRequest} request |
| 543 * @return {!Element} | 543 * @return {!Element} |
| 544 */ | 544 */ |
| 545 WebInspector.linkifyRequestAsNode = function(request) | 545 WebInspector.linkifyRequestAsNode = function(request) |
| 546 { | 546 { |
| 547 var anchor = WebInspector.linkifyURLAsNode(request.url); | 547 var anchor = WebInspector.linkifyURLAsNode(request.url); |
| 548 anchor.requestId = request.requestId; | 548 anchor.requestId = request.requestId; |
| 549 return anchor; | 549 return anchor; |
| 550 } | 550 } |
| OLD | NEW |