Title: [201231] trunk/Source/WebInspectorUI
Revision
201231
Author
commit-qu...@webkit.org
Date
2016-05-20 15:53:35 -0700 (Fri, 20 May 2016)

Log Message

REGRESSION(r200740): Web Inspector: TimelineRecordBar class lists not properly cleared, bleeding colors when zooming in and out
https://bugs.webkit.org/show_bug.cgi?id=157959
<rdar://problem/26393067>

Patch by Joseph Pecoraro <pecor...@apple.com> on 2016-05-20
Reviewed by Brian Burg.

* UserInterface/Views/TimelineRecordBar.js:
(WebInspector.TimelineRecordBar.prototype.set records):
When records are cleared, clear all classes.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (201230 => 201231)


--- trunk/Source/WebInspectorUI/ChangeLog	2016-05-20 22:31:34 UTC (rev 201230)
+++ trunk/Source/WebInspectorUI/ChangeLog	2016-05-20 22:53:35 UTC (rev 201231)
@@ -1,3 +1,15 @@
+2016-05-20  Joseph Pecoraro  <pecor...@apple.com>
+
+        REGRESSION(r200740): Web Inspector: TimelineRecordBar class lists not properly cleared, bleeding colors when zooming in and out
+        https://bugs.webkit.org/show_bug.cgi?id=157959
+        <rdar://problem/26393067>
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Views/TimelineRecordBar.js:
+        (WebInspector.TimelineRecordBar.prototype.set records):
+        When records are cleared, clear all classes.
+
 2016-05-20  Nikita Vasilyev  <nvasil...@apple.com>
 
         Web Inspector: Split Console is auto opening all the time when using Inspect Element context menu

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordBar.js (201230 => 201231)


--- trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordBar.js	2016-05-20 22:31:34 UTC (rev 201230)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordBar.js	2016-05-20 22:53:35 UTC (rev 201231)
@@ -219,7 +219,8 @@
             }
             if (newRecord.usesActiveStartTime !== oldRecordUsesActiveStartTime)
                 this._element.classList.toggle("has-inactive-segment", newRecord.usesActiveStartTime);
-        }
+        } else
+            this._element.classList.remove(oldRecordType, oldRecordEventType, "has-inactive-segment");
     }
 
     refresh(graphDataSource)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to