| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 198      * @return {!Element} | 198      * @return {!Element} | 
| 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 location = script && debuggerModel.createRawLocation(script, lineNum
     ber, columnNumber); | 
| 209             WebInspector.BlackboxSupport.isBlackboxed(script.sourceURL, script.i
     sContentScript()) : | 209         var blackboxed = location ? | 
|  | 210             WebInspector.BlackboxSupport.isBlackboxedScriptLocation(location) : | 
| 210             WebInspector.BlackboxSupport.isBlackboxedURL(callFrame.url); | 211             WebInspector.BlackboxSupport.isBlackboxedURL(callFrame.url); | 
| 211         if (blackboxed) | 212         if (blackboxed) | 
| 212             anchor.classList.add("webkit-html-blackbox-link"); | 213             anchor.classList.add("webkit-html-blackbox-link"); | 
| 213 | 214 | 
| 214         return anchor; | 215         return anchor; | 
| 215     }, | 216     }, | 
| 216 | 217 | 
| 217     /** | 218     /** | 
| 218      * @param {!WebInspector.CSSLocation} rawLocation | 219      * @param {!WebInspector.CSSLocation} rawLocation | 
| 219      * @param {string=} classes | 220      * @param {string=} classes | 
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 541 /** | 542 /** | 
| 542  * @param {!WebInspector.NetworkRequest} request | 543  * @param {!WebInspector.NetworkRequest} request | 
| 543  * @return {!Element} | 544  * @return {!Element} | 
| 544  */ | 545  */ | 
| 545 WebInspector.linkifyRequestAsNode = function(request) | 546 WebInspector.linkifyRequestAsNode = function(request) | 
| 546 { | 547 { | 
| 547     var anchor = WebInspector.linkifyURLAsNode(request.url); | 548     var anchor = WebInspector.linkifyURLAsNode(request.url); | 
| 548     anchor.requestId = request.requestId; | 549     anchor.requestId = request.requestId; | 
| 549     return anchor; | 550     return anchor; | 
| 550 } | 551 } | 
| OLD | NEW | 
|---|