https://bugs.webkit.org/show_bug.cgi?id=77974
Patch by Alexei Filippov <alexeif@chromium.org> on 2012-02-07
Reviewed by Yury Semikhatsky.
* inspector/front-end/DetailedHeapshotView.js:
(WebInspector.HeapSnapshotConstructorsDataGrid.prototype.populateChildren):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106937
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-07 Alexei Filippov <alexeif@chromium.org>
+
+ Web Inspector: fix objects duplication when switching filter in heap profiler.
+ https://bugs.webkit.org/show_bug.cgi?id=77974
+
+ Reviewed by Yury Semikhatsky.
+
+ * inspector/front-end/DetailedHeapshotView.js:
+ (WebInspector.HeapSnapshotConstructorsDataGrid.prototype.populateChildren):
+
2012-02-07 Jonathan Backer <backer@chromium.org>
[chromium] Add setNeedsRedraw to WebWidget
this.sortingChanged();
}
- if (this._filterProfileIndex === -1) {
- this.snapshot.aggregates(false, "allObjects", null, aggregatesReceived.bind(this, "allObjects"));
- return;
- }
-
this.dispose();
this.removeChildren();
this.resetSortingCache();
- var key = this._minNodeId + ".." + this._maxNodeId;
- var filter = "function(node) { var id = node.id; return id > " + this._minNodeId + " && id <= " + this._maxNodeId + "; }";
+ var key = this._filterProfileIndex === -1 ? "allObjects" : this._minNodeId + ".." + this._maxNodeId;
+ var filter = this._filterProfileIndex === -1 ? null : "function(node) { var id = node.id; return id > " + this._minNodeId + " && id <= " + this._maxNodeId + "; }";
+
this.snapshot.aggregates(false, key, filter, aggregatesReceived.bind(this, key));
},