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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 this._tabbedPane = new WebInspector.TabbedPane(); | 100 this._tabbedPane = new WebInspector.TabbedPane(); |
101 this._tabbedPane.closeableTabs = false; | 101 this._tabbedPane.closeableTabs = false; |
102 this._tabbedPane.headerElement().classList.add("heap-object-details-head
er"); | 102 this._tabbedPane.headerElement().classList.add("heap-object-details-head
er"); |
103 | 103 |
104 this._tabbedPane.appendTab("retainers", WebInspector.UIString("Retainers
"), this._retainmentView); | 104 this._tabbedPane.appendTab("retainers", WebInspector.UIString("Retainers
"), this._retainmentView); |
105 this._tabbedPane.appendTab("allocation-stack", WebInspector.UIString("Al
location stack"), this._allocationStackView); | 105 this._tabbedPane.appendTab("allocation-stack", WebInspector.UIString("Al
location stack"), this._allocationStackView); |
106 | 106 |
107 splitViewResizer = this._tabbedPane.headerElement(); | 107 splitViewResizer = this._tabbedPane.headerElement(); |
108 this._objectDetailsView = this._tabbedPane; | 108 this._objectDetailsView = this._tabbedPane; |
109 } else { | 109 } else { |
110 var retainmentViewHeader = document.createElementWithClass("div", "heap-
snapshot-view-resizer"); | 110 var retainmentViewHeader = createElementWithClass("div", "heap-snapshot-
view-resizer"); |
111 var retainingPathsTitleDiv = retainmentViewHeader.createChild("div", "ti
tle"); | 111 var retainingPathsTitleDiv = retainmentViewHeader.createChild("div", "ti
tle"); |
112 var retainingPathsTitle = retainingPathsTitleDiv.createChild("span"); | 112 var retainingPathsTitle = retainingPathsTitleDiv.createChild("span"); |
113 retainingPathsTitle.textContent = WebInspector.UIString("Retainers"); | 113 retainingPathsTitle.textContent = WebInspector.UIString("Retainers"); |
114 this._retainmentView.element.appendChild(retainmentViewHeader); | 114 this._retainmentView.element.appendChild(retainmentViewHeader); |
115 | 115 |
116 splitViewResizer = retainmentViewHeader; | 116 splitViewResizer = retainmentViewHeader; |
117 this._objectDetailsView = this._retainmentView; | 117 this._objectDetailsView = this._retainmentView; |
118 } | 118 } |
119 this._splitView.hideDefaultResizer(); | 119 this._splitView.hideDefaultResizer(); |
120 this._splitView.installResizer(splitViewResizer); | 120 this._splitView.installResizer(splitViewResizer); |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 354 |
355 /** | 355 /** |
356 * @constructor | 356 * @constructor |
357 * @extends {WebInspector.HeapSnapshotView.Perspective} | 357 * @extends {WebInspector.HeapSnapshotView.Perspective} |
358 */ | 358 */ |
359 WebInspector.HeapSnapshotView.AllocationPerspective = function() | 359 WebInspector.HeapSnapshotView.AllocationPerspective = function() |
360 { | 360 { |
361 WebInspector.HeapSnapshotView.Perspective.call(this, WebInspector.UIString(
"Allocation")); | 361 WebInspector.HeapSnapshotView.Perspective.call(this, WebInspector.UIString(
"Allocation")); |
362 this._allocationSplitView = new WebInspector.SplitView(false, true, "heapSna
pshotAllocationSplitViewState", 200, 200); | 362 this._allocationSplitView = new WebInspector.SplitView(false, true, "heapSna
pshotAllocationSplitViewState", 200, 200); |
363 | 363 |
364 var resizer = document.createElementWithClass("div", "heap-snapshot-view-res
izer"); | 364 var resizer = createElementWithClass("div", "heap-snapshot-view-resizer"); |
365 var title = resizer.createChild("div", "title").createChild("span"); | 365 var title = resizer.createChild("div", "title").createChild("span"); |
366 title.textContent = WebInspector.UIString("Live objects"); | 366 title.textContent = WebInspector.UIString("Live objects"); |
367 this._allocationSplitView.hideDefaultResizer(); | 367 this._allocationSplitView.hideDefaultResizer(); |
368 this._allocationSplitView.installResizer(resizer); | 368 this._allocationSplitView.installResizer(resizer); |
369 | 369 |
370 this._allocationSplitView.sidebarElement().appendChild(resizer); | 370 this._allocationSplitView.sidebarElement().appendChild(resizer); |
371 } | 371 } |
372 | 372 |
373 WebInspector.HeapSnapshotView.AllocationPerspective.prototype = { | 373 WebInspector.HeapSnapshotView.AllocationPerspective.prototype = { |
374 /** | 374 /** |
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2207 name.textContent = frame.functionName; | 2207 name.textContent = frame.functionName; |
2208 if (frame.scriptId) { | 2208 if (frame.scriptId) { |
2209 var urlElement = this._linkifier.linkifyScriptLocation(this._tar
get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1)
; | 2209 var urlElement = this._linkifier.linkifyScriptLocation(this._tar
get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1)
; |
2210 frameDiv.appendChild(urlElement); | 2210 frameDiv.appendChild(urlElement); |
2211 } | 2211 } |
2212 } | 2212 } |
2213 }, | 2213 }, |
2214 | 2214 |
2215 __proto__: WebInspector.View.prototype | 2215 __proto__: WebInspector.View.prototype |
2216 } | 2216 } |
OLD | NEW |