Changeset 112403 in webkit
- Timestamp:
- Mar 28, 2012 8:36:03 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r112402 r112403 1 2012-03-28 Andrey Kosyakov <caseq@chromium.org> 2 3 Web Inspector: nuke HeapGraph.setSize(), do it automagically on update 4 https://bugs.webkit.org/show_bug.cgi?id=82471 5 6 Reviewed by Yury Semikhatsky. 7 8 * inspector/front-end/TimelineOverviewPane.js: 9 (WebInspector.TimelineOverviewPane.prototype.update): 10 (WebInspector.HeapGraph.prototype.update): 11 1 12 2012-03-28 Pavel Podivilov <podivilov@chromium.org> 2 13 -
trunk/Source/WebCore/inspector/front-end/TimelineOverviewPane.js
r111691 r112403 197 197 WebInspector.TimelinePanel.forAllRecords(records, updateBoundaries.bind(this)); 198 198 199 if (this._heapGraph.visible) { 200 this._heapGraph.setSize(this._overviewGrid.element.offsetWidth, 60); 199 if (this._heapGraph.visible) 201 200 this._heapGraph.update(records); 202 }else if (this._verticalOverview)201 else if (this._verticalOverview) 203 202 this._verticalOverview.update(records); 204 203 else … … 711 710 }, 712 711 713 setSize: function(w, h) {714 this._canvas.width = w;715 this._canvas.height = h - 5;716 },717 718 712 update: function(records) 719 713 { 720 714 if (!records.length) 721 715 return; 716 717 const yPadding = 5; 718 this._canvas.width = this.element.clientWidth; 719 this._canvas.height = this.element.clientHeight - yPadding; 722 720 723 721 const lowerOffset = 3;
Note: See TracChangeset
for help on using the changeset viewer.