Title: [132789] trunk/Source/WebCore
Revision
132789
Author
[email protected]
Date
2012-10-29 05:43:02 -0700 (Mon, 29 Oct 2012)

Log Message

Web Inspector: Timeline: Overview bars do not correspond to timeline bars
https://bugs.webkit.org/show_bug.cgi?id=100500

Patch by Eugene Klyuchnikov <[email protected]> on 2012-10-29
Reviewed by Yury Semikhatsky.

Fix: do not shorten bars by nested records of the same category.

* inspector/front-end/TimelineOverviewPane.js: Check added.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (132788 => 132789)


--- trunk/Source/WebCore/ChangeLog	2012-10-29 12:40:05 UTC (rev 132788)
+++ trunk/Source/WebCore/ChangeLog	2012-10-29 12:43:02 UTC (rev 132789)
@@ -1,5 +1,16 @@
 2012-10-29  Eugene Klyuchnikov  <[email protected]>
 
+        Web Inspector: Timeline: Overview bars do not correspond to timeline bars
+        https://bugs.webkit.org/show_bug.cgi?id=100500
+
+        Reviewed by Yury Semikhatsky.
+
+        Fix: do not shorten bars by nested records of the same category.
+
+        * inspector/front-end/TimelineOverviewPane.js: Check added.
+
+2012-10-29  Eugene Klyuchnikov  <[email protected]>
+
         Web Inspector: Timeline: make cpu-monitoring feature available only on capable browsers
         https://bugs.webkit.org/show_bug.cgi?id=100530
 

Modified: trunk/Source/WebCore/inspector/front-end/TimelineOverviewPane.js (132788 => 132789)


--- trunk/Source/WebCore/inspector/front-end/TimelineOverviewPane.js	2012-10-29 12:40:05 UTC (rev 132788)
+++ trunk/Source/WebCore/inspector/front-end/TimelineOverviewPane.js	2012-10-29 12:43:02 UTC (rev 132789)
@@ -940,7 +940,8 @@
             // This bar may be merged with previous -- so just adjust the previous bar.
             const barsMergeThreshold = 2;
             if (bar && bar.category === category && bar.end + barsMergeThreshold >= recordStart) {
-                bar.end = recordEnd;
+                if (recordEnd > bar.end)
+                    bar.end = recordEnd;
                 return;
             }
             if (bar)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to