| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 functionName.textContent = WebInspector.beautifyFunctionName(respons
e.functionName); | 95 functionName.textContent = WebInspector.beautifyFunctionName(respons
e.functionName); |
| 96 | 96 |
| 97 var rawLocation = response.location; | 97 var rawLocation = response.location; |
| 98 var linkContainer = title.createChild("div", "function-title-link-co
ntainer"); | 98 var linkContainer = title.createChild("div", "function-title-link-co
ntainer"); |
| 99 if (rawLocation && Runtime.experiments.isEnabled("continueToFirstInv
ocation")) { | 99 if (rawLocation && Runtime.experiments.isEnabled("continueToFirstInv
ocation")) { |
| 100 var sectionToolbar = new WebInspector.Toolbar("function-location
-step-into", linkContainer); | 100 var sectionToolbar = new WebInspector.Toolbar("function-location
-step-into", linkContainer); |
| 101 var stepInto = new WebInspector.ToolbarButton(WebInspector.UIStr
ing("Continue to first invocation"), "step-in-toolbar-item"); | 101 var stepInto = new WebInspector.ToolbarButton(WebInspector.UIStr
ing("Continue to first invocation"), "step-in-toolbar-item"); |
| 102 stepInto.addEventListener("click", () => rawLocation.continueToL
ocation()); | 102 stepInto.addEventListener("click", () => rawLocation.continueToL
ocation()); |
| 103 sectionToolbar.appendToolbarItem(stepInto); | 103 sectionToolbar.appendToolbarItem(stepInto); |
| 104 } | 104 } |
| 105 var sourceURL = rawLocation.script() ? rawLocation.script().sourceUR
L : null; | 105 var sourceURL = rawLocation && rawLocation.script() ? rawLocation.sc
ript().sourceURL : null; |
| 106 if (rawLocation && sourceURL) { | 106 if (rawLocation && sourceURL) { |
| 107 var link = this._lazyLinkifier().linkifyRawLocation(rawLocation,
sourceURL); | 107 var link = this._lazyLinkifier().linkifyRawLocation(rawLocation,
sourceURL); |
| 108 linkContainer.appendChild(link); | 108 linkContainer.appendChild(link); |
| 109 } | 109 } |
| 110 container.appendChild(popoverContentElement); | 110 container.appendChild(popoverContentElement); |
| 111 popover.showForAnchor(container, anchorElement); | 111 popover.showForAnchor(container, anchorElement); |
| 112 } | 112 } |
| 113 | 113 |
| 114 /** | 114 /** |
| 115 * @param {!WebInspector.RemoteObject} result | 115 * @param {!WebInspector.RemoteObject} result |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 */ | 195 */ |
| 196 _lazyLinkifier: function() | 196 _lazyLinkifier: function() |
| 197 { | 197 { |
| 198 if (!this._linkifier) | 198 if (!this._linkifier) |
| 199 this._linkifier = new WebInspector.Linkifier(); | 199 this._linkifier = new WebInspector.Linkifier(); |
| 200 return this._linkifier; | 200 return this._linkifier; |
| 201 }, | 201 }, |
| 202 | 202 |
| 203 __proto__: WebInspector.PopoverHelper.prototype | 203 __proto__: WebInspector.PopoverHelper.prototype |
| 204 } | 204 } |
| OLD | NEW |