Changeset 112262 in webkit
- Timestamp:
- Mar 27, 2012 7:23:22 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r112254 r112262 1 2012-03-27 Alexei Filippov <alexeif@chromium.org> 2 3 Web Inspector: Fix missing objects in the dominators view. 4 https://bugs.webkit.org/show_bug.cgi?id=82194 5 6 Due to the nature of dominators tree it is not possible to hide internal 7 objects there because they may happen to contain user objects that can't 8 be hidden. 9 Besides that it fixes a small bug in HeapSnapshotArraySlice.slice 10 function. 11 12 Reviewed by Yury Semikhatsky. 13 14 * inspector/profiler/heap-snapshot-expected.txt: 15 * inspector/profiler/heap-snapshot.html: 16 1 17 2012-03-27 Alexis Menard <alexis.menard@openbossa.org> 2 18 -
trunk/LayoutTests/inspector/profiler/heap-snapshot-expected.txt
r112222 r112262 20 20 Running: heapSnapshotFlagsTest 21 21 22 Running: heapSnapshotArraySliceTest 23 22 24 Running: heapSnapshotNodesProviderTest 23 25 -
trunk/LayoutTests/inspector/profiler/heap-snapshot.html
r112222 r112262 173 173 }, 174 174 175 function heapSnapshotArraySliceTest(next) 176 { 177 var snapshot = new WebInspector.HeapSnapshot(InspectorTest.createHeapSnapshotMock()); 178 var root = snapshot.rootNode; 179 var rawEdges = root.rawEdges; 180 InspectorTest.assertEquals(6, rawEdges.length); 181 InspectorTest.assertEquals(6, rawEdges.slice(0).length); 182 InspectorTest.assertEquals(3, rawEdges.slice(3).length); 183 InspectorTest.assertEquals(3, rawEdges.slice(3, 6).length); 184 InspectorTest.assertEquals(3, rawEdges.slice(0, 3).length); 185 InspectorTest.assertEquals(0, rawEdges.slice(3, 3).length); 186 next(); 187 }, 188 175 189 function heapSnapshotNodesProviderTest(next) 176 190 { -
trunk/Source/WebCore/ChangeLog
r112259 r112262 1 2012-03-27 Alexei Filippov <alexeif@chromium.org> 2 3 Web Inspector: Fix missing objects in the dominators view. 4 https://bugs.webkit.org/show_bug.cgi?id=82194 5 6 Due to the nature of dominators tree it is not possible to hide internal 7 objects there because they may happen to contain user objects that can't 8 be hidden. 9 Besides that it fixes a small bug in HeapSnapshotArraySlice.slice 10 function. 11 12 Reviewed by Yury Semikhatsky. 13 14 * inspector/front-end/DetailedHeapshotGridNodes.js: 15 (WebInspector.HeapSnapshotDominatorObjectNode.prototype._createProvider): 16 * inspector/front-end/HeapSnapshot.js: 17 (WebInspector.HeapSnapshotArraySlice.prototype.slice): 18 1 19 2012-03-27 Antti Koivisto <antti@apple.com> 2 20 -
trunk/Source/WebCore/inspector/front-end/DetailedHeapshotGridNodes.js
r111512 r112262 504 504 _createProvider: function(snapshot, nodeIndex) 505 505 { 506 var showHiddenData = WebInspector. DetailedHeapshotView.prototype.showHiddenData;506 var showHiddenData = WebInspector.settings.showHeapSnapshotObjectsHiddenProperties.get(); 507 507 return snapshot.createEdgesProvider( 508 508 nodeIndex, … … 837 837 _createProvider: function(snapshot, nodeIndex) 838 838 { 839 var showHiddenData = WebInspector.DetailedHeapshotView.prototype.showHiddenData;840 839 return snapshot.createNodesProviderForDominator(nodeIndex, 841 "function (node) {" + 842 " return " + showHiddenData + " || !node.isHidden;" + 843 "}"); 840 "function (node) { return true; }"); 844 841 }, 845 842 -
trunk/Source/WebCore/inspector/front-end/HeapSnapshot.js
r112225 r112262 231 231 { 232 232 if (typeof end === "undefined") 233 end = start + this._start +this.length;234 return this._snapshot[this._arrayName].subarray(this._start + start, end);233 end = this.length; 234 return this._snapshot[this._arrayName].subarray(this._start + start, this._start + end); 235 235 } 236 236 }
Note: See TracChangeset
for help on using the changeset viewer.