Web Inspector: Workaround arrow function issue in TimelineOverviewGraph.js
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Dec 2015 03:58:53 +0000 (03:58 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Dec 2015 03:58:53 +0000 (03:58 +0000)
https://bugs.webkit.org/show_bug.cgi?id=152031

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

* UserInterface/Views/TimelineOverviewGraph.js:
(WebInspector.TimelineOverviewGraph.prototype._needsSelectedRecordLayout):
Workaround an existing arrow function issue by moving off of arrow functions here.

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

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

index d59710e..3a66780 100644 (file)
@@ -1,3 +1,14 @@
+2015-12-08  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Workaround arrow function issue in TimelineOverviewGraph.js
+        https://bugs.webkit.org/show_bug.cgi?id=152031
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/TimelineOverviewGraph.js:
+        (WebInspector.TimelineOverviewGraph.prototype._needsSelectedRecordLayout):
+        Workaround an existing arrow function issue by moving off of arrow functions here.
+
 2015-12-08  Matt Baker  <mattbaker@apple.com>
 
         Web Inspector: Add a hidden property to TreeOutline
 2015-12-08  Matt Baker  <mattbaker@apple.com>
 
         Web Inspector: Add a hidden property to TreeOutline
index 15e5441..4041c09 100644 (file)
@@ -219,10 +219,10 @@ WebInspector.TimelineOverviewGraph = class TimelineOverviewGraph extends WebInsp
         if (this._scheduledSelectedRecordLayoutUpdateIdentifier)
             return;
 
         if (this._scheduledSelectedRecordLayoutUpdateIdentifier)
             return;
 
-        this._scheduledSelectedRecordLayoutUpdateIdentifier = requestAnimationFrame(() => {
+        this._scheduledSelectedRecordLayoutUpdateIdentifier = requestAnimationFrame(function() {
             this._scheduledSelectedRecordLayoutUpdateIdentifier = undefined;
             this.updateSelectedRecord();
             this._scheduledSelectedRecordLayoutUpdateIdentifier = undefined;
             this.updateSelectedRecord();
-        });
+        }.bind(this));
     }
 };
 
     }
 };