From b802cef17167a8c09f2837ee16f3a44b4740700a Mon Sep 17 00:00:00 2001 From: "caseq@chromium.org" Date: Tue, 3 Apr 2012 15:33:43 +0000 Subject: [PATCH] Web Inspector: remove unused references to TimelineCalculator https://bugs.webkit.org/show_bug.cgi?id=83025 Reviewed by Yury Semikhatsky. * inspector/front-end/TimelinePanel.js: (WebInspector.TimelinePanel.prototype._refreshRecords): (WebInspector.TimelinePanel.prototype._showPopover): (WebInspector.TimelineRecordListRow.prototype.update): * inspector/front-end/TimelinePresentationModel.js: (WebInspector.TimelinePresentationModel.Record.prototype.generatePopupContent): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113039 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Source/WebCore/ChangeLog | 14 ++++++++++++++ Source/WebCore/inspector/front-end/TimelinePanel.js | 7 +++---- .../inspector/front-end/TimelinePresentationModel.js | 2 +- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index 4541ba6..fb36177 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,17 @@ +2012-04-03 Andrey Kosyakov + + Web Inspector: remove unused references to TimelineCalculator + https://bugs.webkit.org/show_bug.cgi?id=83025 + + Reviewed by Yury Semikhatsky. + + * inspector/front-end/TimelinePanel.js: + (WebInspector.TimelinePanel.prototype._refreshRecords): + (WebInspector.TimelinePanel.prototype._showPopover): + (WebInspector.TimelineRecordListRow.prototype.update): + * inspector/front-end/TimelinePresentationModel.js: + (WebInspector.TimelinePresentationModel.Record.prototype.generatePopupContent): + 2012-04-03 Mark Pilgrim Call incrementStatsCounter directly diff --git a/Source/WebCore/inspector/front-end/TimelinePanel.js b/Source/WebCore/inspector/front-end/TimelinePanel.js index 77d83c1..2b81a08 100644 --- a/Source/WebCore/inspector/front-end/TimelinePanel.js +++ b/Source/WebCore/inspector/front-end/TimelinePanel.js @@ -657,7 +657,7 @@ WebInspector.TimelinePanel.prototype = { this._graphRowsElement.appendChild(graphRowElement); } - listRowElement.row.update(record, isEven, this._calculator, visibleTop); + listRowElement.row.update(record, isEven, visibleTop); graphRowElement.row.update(record, isEven, this._calculator, width, this._expandOffset, i); listRowElement = listRowElement.nextSibling; @@ -743,7 +743,7 @@ WebInspector.TimelinePanel.prototype = { _showPopover: function(anchor, popover) { var record = anchor.row._record; - popover.show(record.generatePopupContent(this._calculator), anchor); + popover.show(record.generatePopupContent(), anchor); }, _closeRecordDetails: function() @@ -830,10 +830,9 @@ WebInspector.TimelineRecordListRow = function() } WebInspector.TimelineRecordListRow.prototype = { - update: function(record, isEven, calculator, offset) + update: function(record, isEven, offset) { this._record = record; - this._calculator = calculator; this._offset = offset; this.element.className = "timeline-tree-item timeline-category-" + record.category.name + (isEven ? " even" : ""); diff --git a/Source/WebCore/inspector/front-end/TimelinePresentationModel.js b/Source/WebCore/inspector/front-end/TimelinePresentationModel.js index f337902..2cd969a 100644 --- a/Source/WebCore/inspector/front-end/TimelinePresentationModel.js +++ b/Source/WebCore/inspector/front-end/TimelinePresentationModel.js @@ -412,7 +412,7 @@ WebInspector.TimelinePresentationModel.Record.prototype = { return cell; }, - generatePopupContent: function(calculator) + generatePopupContent: function() { var contentHelper = new WebInspector.TimelinePresentationModel.PopupContentHelper(this.title); -- 2.7.4