• yurys@chromium.org's avatar
    Web Inspector: rename distanceToWindow to distance · a002c111
    yurys@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=105823
    
    Reviewed by Pavel Feldman.
    
    PerformanceTests:
    
    Updated heap profiler performance test after renaming distanceToWindow to distance.
    
    * inspector/heap-snapshot-performance-test.js:
    
    Source/WebCore:
    
    Renamed distanceToWindow to distance. Introduced a method on HeapSnapshot
    that allows to check if given node should be displayed to the user as having
    distance 1.
    
    * inspector/front-end/HeapSnapshot.js:
    (WebInspector.HeapSnapshotEdge.prototype.serialize):
    (WebInspector.HeapSnapshotRetainerEdge.prototype.serialize):
    (WebInspector.HeapSnapshotNode.prototype.distance):
    (WebInspector.HeapSnapshotNode.prototype.serialize):
    (WebInspector.HeapSnapshot.prototype._init):
    (WebInspector.HeapSnapshot.prototype.dispose):
    (WebInspector.HeapSnapshot.prototype.canHaveDistanceOne):
    (WebInspector.HeapSnapshot.prototype._calculateDistances):
    (WebInspector.HeapSnapshot.prototype._bfs):
    (WebInspector.HeapSnapshot.prototype._buildAggregates):
    * inspector/front-end/HeapSnapshotDataGrids.js:
    (WebInspector.HeapSnapshotRetainmentDataGrid):
    (WebInspector.HeapSnapshotRetainmentDataGrid.prototype._sortFields):
    (WebInspector.HeapSnapshotConstructorsDataGrid):
    (WebInspector.HeapSnapshotConstructorsDataGrid.prototype._sortFields):
    * inspector/front-end/HeapSnapshotGridNodes.js:
    (WebInspector.HeapSnapshotGenericObjectNode):
    (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
    (WebInspector.HeapSnapshotObjectNode):
    (WebInspector.HeapSnapshotObjectNode.prototype.comparator):
    (WebInspector.HeapSnapshotObjectNode.prototype._enhanceData):
    (WebInspector.HeapSnapshotInstanceNode.prototype.comparator):
    (WebInspector.HeapSnapshotConstructorNode):
    (WebInspector.HeapSnapshotConstructorNode.prototype.comparator):
    (WebInspector.HeapSnapshotConstructorNode.prototype.get data):
    * inspector/front-end/JSHeapSnapshot.js:
    (WebInspector.JSHeapSnapshot.prototype.canHaveDistanceOne):
    
    LayoutTests:
    
    Updated tests after renaming distanceToWindow to distance.
    
    * inspector/profiler/heap-snapshot-summary-sorting-fields.html:
    * inspector/profiler/heap-snapshot-summary-sorting-instances.html:
    * inspector/profiler/heap-snapshot-summary-sorting.html:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a002c111
ChangeLog 157 KB