Changeset 143317 in webkit
- Timestamp:
- Feb 19, 2013 4:21:12 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r143313 r143317 1 2013-02-18 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Web Inspector: Native Memory Instrumentation: show user provided name property of the heap snapshot node. 4 https://bugs.webkit.org/show_bug.cgi?id=110124 5 6 Reviewed by Yury Semikhatsky. 7 8 Publish userProvidedName into grid node. 9 10 * inspector/front-end/HeapSnapshotGridNodes.js: 11 (WebInspector.HeapSnapshotGenericObjectNode): 12 (WebInspector.HeapSnapshotGenericObjectNode.prototype._createObjectCell): 13 (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data): 14 * inspector/front-end/HeapSnapshotProxy.js: 15 (WebInspector.HeapSnapshotWorker): 16 * inspector/front-end/NativeHeapSnapshot.js: 17 (WebInspector.NativeHeapSnapshotNode.prototype.serialize): 18 1 19 2013-02-19 Arpita Bahuguna <a.bah@samsung.com> 2 20 -
trunk/Source/WebCore/inspector/front-end/HeapSnapshotGridNodes.js
r142460 r143317 351 351 return; 352 352 this._name = node.name; 353 this._displayName = node.displayName; 353 354 this._type = node.type; 354 355 this._distance = node.distance; … … 384 385 div.className = "source-code event-properties"; 385 386 div.style.overflow = "visible"; 387 386 388 var data = this.data["object"]; 387 389 if (this._prefixObjectCell) 388 390 this._prefixObjectCell(div, data); 391 389 392 var valueSpan = document.createElement("span"); 390 393 valueSpan.className = "value console-formatted-" + data.valueStyle; 391 394 valueSpan.textContent = data.value; 392 395 div.appendChild(valueSpan); 396 397 if (this.data.displayName) { 398 var nameSpan = document.createElement("span"); 399 nameSpan.className = "name console-formatted-name"; 400 nameSpan.textContent = " " + this.data.displayName; 401 div.appendChild(nameSpan); 402 } 403 393 404 var idSpan = document.createElement("span"); 394 405 idSpan.className = "console-formatted-id"; 395 406 idSpan.textContent = " @" + data["nodeId"]; 396 407 div.appendChild(idSpan); 408 397 409 if (this._postfixObjectCell) 398 410 this._postfixObjectCell(div, data); 411 399 412 cell.appendChild(div); 400 413 cell.addStyleClass("disclosure"); … … 445 458 data["object"] = { valueStyle: valueStyle, value: value, nodeId: this.snapshotNodeId }; 446 459 460 data["displayName"] = this._displayName; 447 461 data["distance"] = this._distance; 448 462 data["shallowSize"] = Number.withThousandsSeparator(this._shallowSize); -
trunk/Source/WebCore/inspector/front-end/NativeHeapSnapshot.js
r143218 r143317 110 110 id: this.id(), 111 111 name: this.className(), 112 displayName: this.name(), 112 113 distance: this.distance(), 113 114 nodeIndex: this.nodeIndex,
Note: See TracChangeset
for help on using the changeset viewer.