| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 delete this._statusMessageElement; | 64 delete this._statusMessageElement; |
| 65 delete this._hiddenPlacardsMessageElement; | 65 delete this._hiddenPlacardsMessageElement; |
| 66 /** @type {!Array.<!WebInspector.CallStackSidebarPane.Placard>} */ | 66 /** @type {!Array.<!WebInspector.CallStackSidebarPane.Placard>} */ |
| 67 this.placards = []; | 67 this.placards = []; |
| 68 this._hiddenPlacards = 0; | 68 this._hiddenPlacards = 0; |
| 69 | 69 |
| 70 this._appendSidebarPlacards(callFrames); | 70 this._appendSidebarPlacards(callFrames); |
| 71 var topStackHidden = (this._hiddenPlacards === this.placards.length); | 71 var topStackHidden = (this._hiddenPlacards === this.placards.length); |
| 72 | 72 |
| 73 while (asyncStackTrace) { | 73 while (asyncStackTrace) { |
| 74 var title = asyncStackTrace.description; | 74 var title = WebInspector.asyncStackTraceLabel(asyncStackTrace.descri
ption); |
| 75 if (title) | |
| 76 title += " " + WebInspector.UIString("(async)"); | |
| 77 else | |
| 78 title = WebInspector.UIString("Async Call"); | |
| 79 var asyncPlacard = new WebInspector.Placard(title, ""); | 75 var asyncPlacard = new WebInspector.Placard(title, ""); |
| 80 asyncPlacard.element.addEventListener("click", this._selectNextVisib
lePlacard.bind(this, this.placards.length, false), false); | 76 asyncPlacard.element.addEventListener("click", this._selectNextVisib
lePlacard.bind(this, this.placards.length, false), false); |
| 81 asyncPlacard.element.addEventListener("contextmenu", this._asyncPlac
ardContextMenu.bind(this, this.placards.length), true); | 77 asyncPlacard.element.addEventListener("contextmenu", this._asyncPlac
ardContextMenu.bind(this, this.placards.length), true); |
| 82 asyncPlacard.element.classList.add("placard-label"); | 78 asyncPlacard.element.classList.add("placard-label"); |
| 83 this.bodyElement.appendChild(asyncPlacard.element); | 79 this.bodyElement.appendChild(asyncPlacard.element); |
| 84 this._appendSidebarPlacards(asyncStackTrace.callFrames, asyncPlacard
); | 80 this._appendSidebarPlacards(asyncStackTrace.callFrames, asyncPlacard
); |
| 85 asyncStackTrace = asyncStackTrace.asyncStackTrace; | 81 asyncStackTrace = asyncStackTrace.asyncStackTrace; |
| 86 } | 82 } |
| 87 | 83 |
| 88 if (topStackHidden) | 84 if (topStackHidden) |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 /** | 354 /** |
| 359 * @param {!WebInspector.UILocation} uiLocation | 355 * @param {!WebInspector.UILocation} uiLocation |
| 360 */ | 356 */ |
| 361 _update: function(uiLocation) | 357 _update: function(uiLocation) |
| 362 { | 358 { |
| 363 this.subtitle = uiLocation.linkText().trimMiddle(100); | 359 this.subtitle = uiLocation.linkText().trimMiddle(100); |
| 364 }, | 360 }, |
| 365 | 361 |
| 366 __proto__: WebInspector.Placard.prototype | 362 __proto__: WebInspector.Placard.prototype |
| 367 } | 363 } |
| OLD | NEW |