Web Inspector: Fix accidental always true comparison
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Aug 2014 06:57:32 +0000 (06:57 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Aug 2014 06:57:32 +0000 (06:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=135741

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-08-07
Reviewed by Timothy Hatcher.

Remove accidental "!" that would always cause this comparison to succeed.

* UserInterface/Views/OverviewTimelineView.js:
(WebInspector.OverviewTimelineView.prototype.updateLayout):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172336 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/OverviewTimelineView.js

index 6592ec9..9df87c7 100644 (file)
@@ -1,5 +1,17 @@
 2014-08-07  Joseph Pecoraro  <pecoraro@apple.com>
 
+        Web Inspector: Fix accidental always true comparison
+        https://bugs.webkit.org/show_bug.cgi?id=135741
+
+        Reviewed by Timothy Hatcher.
+
+        Remove accidental "!" that would always cause this comparison to succeed.
+
+        * UserInterface/Views/OverviewTimelineView.js:
+        (WebInspector.OverviewTimelineView.prototype.updateLayout):
+
+2014-08-07  Joseph Pecoraro  <pecoraro@apple.com>
+
         Web Inspector: Timeline Filter Bars are not appearing at all
         https://bugs.webkit.org/show_bug.cgi?id=135740
 
index 5cbef01..bf4eb10 100644 (file)
@@ -105,7 +105,7 @@ WebInspector.OverviewTimelineView.prototype = {
             }
         }
 
-        if (!this.currentTime !== oldCurrentTime) {
+        if (this.currentTime !== oldCurrentTime) {
             var selectedTreeElement = this.navigationSidebarTreeOutline.selectedTreeElement;
             var selectionWasHidden = selectedTreeElement && selectedTreeElement.hidden;