Title: [121039] trunk/Source/WebCore
Revision
121039
Author
[email protected]
Date
2012-06-22 11:07:44 -0700 (Fri, 22 Jun 2012)

Log Message

Unreviewed follow-up to r121030, fix display of "Duration" in timeline event details popup.

* inspector/front-end/TimelinePresentationModel.js:
(WebInspector.TimelinePresentationModel.Record.prototype.generatePopupContent):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (121038 => 121039)


--- trunk/Source/WebCore/ChangeLog	2012-06-22 17:50:42 UTC (rev 121038)
+++ trunk/Source/WebCore/ChangeLog	2012-06-22 18:07:44 UTC (rev 121039)
@@ -1,3 +1,10 @@
+2012-06-22  Andrey Kosyakov  <[email protected]>
+
+        Unreviewed follow-up to r121030, fix display of "Duration" in timeline event details popup.
+
+        * inspector/front-end/TimelinePresentationModel.js:
+        (WebInspector.TimelinePresentationModel.Record.prototype.generatePopupContent):
+
 2012-06-22  Kenneth Russell  <[email protected]>
 
         Unreviewed, rolling out r121025.

Modified: trunk/Source/WebCore/inspector/front-end/TimelinePresentationModel.js (121038 => 121039)


--- trunk/Source/WebCore/inspector/front-end/TimelinePresentationModel.js	2012-06-22 17:50:42 UTC (rev 121038)
+++ trunk/Source/WebCore/inspector/front-end/TimelinePresentationModel.js	2012-06-22 18:07:44 UTC (rev 121039)
@@ -472,16 +472,16 @@
     {
         var contentHelper = new WebInspector.TimelinePresentationModel.PopupContentHelper(this.title);
 
+        var text = WebInspector.UIString("%s (at %s)", Number.secondsToString(this._lastChildEndTime - this.startTime, true),
+            Number.secondsToString(this._startTimeOffset));
         contentHelper._appendTextRow(WebInspector.UIString("Duration"), text);
+
         if (this._children && this._children.length) {
             contentHelper._appendTextRow(WebInspector.UIString("Self Time"), Number.secondsToString(this._selfTime, true));
             contentHelper._appendTextRow(WebInspector.UIString("CPU Time"), Number.secondsToString(this._cpuTime, true));
             contentHelper._appendElementRow(WebInspector.UIString("Aggregated Time"),
                 WebInspector.TimelinePresentationModel._generateAggregatedInfo(this._aggregatedStats));
         }
-        var text = WebInspector.UIString("%s (at %s)", Number.secondsToString(this._lastChildEndTime - this.startTime, true),
-            Number.secondsToString(this._startTimeOffset));
-
         const recordTypes = WebInspector.TimelineModel.RecordType;
 
         switch (this.type) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to