Web Inspector: remove unused references to TimelineCalculator
authorcaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2012 15:33:43 +0000 (15:33 +0000)
committercaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2012 15:33:43 +0000 (15:33 +0000)
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
Source/WebCore/inspector/front-end/TimelinePanel.js
Source/WebCore/inspector/front-end/TimelinePresentationModel.js

index 4541ba6..fb36177 100644 (file)
@@ -1,3 +1,17 @@
+2012-04-03  Andrey Kosyakov  <caseq@chromium.org>
+
+        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  <pilgrim@chromium.org>
 
         Call incrementStatsCounter directly
index 77d83c1..2b81a08 100644 (file)
@@ -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" : "");
index f337902..2cd969a 100644 (file)
@@ -412,7 +412,7 @@ WebInspector.TimelinePresentationModel.Record.prototype = {
         return cell;
     },
 
-    generatePopupContent: function(calculator)
+    generatePopupContent: function()
     {
         var contentHelper = new WebInspector.TimelinePresentationModel.PopupContentHelper(this.title);