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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 asyncPlacard.element.addEventListener("contextmenu", this._asyncPlac
ardContextMenu.bind(this, this.placards.length), true); | 78 asyncPlacard.element.addEventListener("contextmenu", this._asyncPlac
ardContextMenu.bind(this, this.placards.length), true); |
79 asyncPlacard.element.classList.add("placard-label"); | 79 asyncPlacard.element.classList.add("placard-label"); |
80 this.bodyElement.appendChild(asyncPlacard.element); | 80 this.bodyElement.appendChild(asyncPlacard.element); |
81 this._appendSidebarPlacards(asyncStackTrace.callFrames, asyncPlacard
); | 81 this._appendSidebarPlacards(asyncStackTrace.callFrames, asyncPlacard
); |
82 asyncStackTrace = asyncStackTrace.asyncStackTrace; | 82 asyncStackTrace = asyncStackTrace.asyncStackTrace; |
83 } | 83 } |
84 | 84 |
85 if (topStackHidden) | 85 if (topStackHidden) |
86 this._revealHiddenPlacards(); | 86 this._revealHiddenPlacards(); |
87 if (this._hiddenPlacards) { | 87 if (this._hiddenPlacards) { |
88 var element = document.createElementWithClass("div", "hidden-placard
s-message"); | 88 var element = createElementWithClass("div", "hidden-placards-message
"); |
89 if (this._hiddenPlacards === 1) | 89 if (this._hiddenPlacards === 1) |
90 element.textContent = WebInspector.UIString("1 stack frame is hi
dden (black-boxed)."); | 90 element.textContent = WebInspector.UIString("1 stack frame is hi
dden (black-boxed)."); |
91 else | 91 else |
92 element.textContent = WebInspector.UIString("%d stack frames are
hidden (black-boxed).", this._hiddenPlacards); | 92 element.textContent = WebInspector.UIString("%d stack frames are
hidden (black-boxed).", this._hiddenPlacards); |
93 element.createTextChild(" "); | 93 element.createTextChild(" "); |
94 var showAllLink = element.createChild("span", "node-link"); | 94 var showAllLink = element.createChild("span", "node-link"); |
95 showAllLink.textContent = WebInspector.UIString("Show"); | 95 showAllLink.textContent = WebInspector.UIString("Show"); |
96 showAllLink.addEventListener("click", this._revealHiddenPlacards.bin
d(this), false); | 96 showAllLink.addEventListener("click", this._revealHiddenPlacards.bin
d(this), false); |
97 this.bodyElement.insertBefore(element, this.bodyElement.firstChild); | 97 this.bodyElement.insertBefore(element, this.bodyElement.firstChild); |
98 this._hiddenPlacardsMessageElement = element; | 98 this._hiddenPlacardsMessageElement = element; |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 */ | 412 */ |
413 _update: function(uiLocation) | 413 _update: function(uiLocation) |
414 { | 414 { |
415 var text = uiLocation.linkText(); | 415 var text = uiLocation.linkText(); |
416 this.subtitle = text.trimMiddle(30); | 416 this.subtitle = text.trimMiddle(30); |
417 this.subtitleElement.title = text; | 417 this.subtitleElement.title = text; |
418 }, | 418 }, |
419 | 419 |
420 __proto__: WebInspector.Placard.prototype | 420 __proto__: WebInspector.Placard.prototype |
421 } | 421 } |
OLD | NEW |