Title: [219641] trunk/Source/WebCore
Revision
219641
Author
[email protected]
Date
2017-07-18 16:32:58 -0700 (Tue, 18 Jul 2017)

Log Message

HysteresisActivity cannot be used in the UIProcess
https://bugs.webkit.org/show_bug.cgi?id=174643
<rdar://problem/33086442>

Reviewed by Tim Horton.

Port HysteresisActivity to RunLoop::Timer so that it can safely be used in
the UIProcess as well.

* platform/HysteresisActivity.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (219640 => 219641)


--- trunk/Source/WebCore/ChangeLog	2017-07-18 23:22:46 UTC (rev 219640)
+++ trunk/Source/WebCore/ChangeLog	2017-07-18 23:32:58 UTC (rev 219641)
@@ -1,3 +1,16 @@
+2017-07-18  Chris Dumez  <[email protected]>
+
+        HysteresisActivity cannot be used in the UIProcess
+        https://bugs.webkit.org/show_bug.cgi?id=174643
+        <rdar://problem/33086442>
+
+        Reviewed by Tim Horton.
+
+        Port HysteresisActivity to RunLoop::Timer so that it can safely be used in
+        the UIProcess as well.
+
+        * platform/HysteresisActivity.h:
+
 2017-07-18  Joseph Pecoraro  <[email protected]>
 
         Web Inspector: Modernize InjectedScriptSource

Modified: trunk/Source/WebCore/platform/HysteresisActivity.h (219640 => 219641)


--- trunk/Source/WebCore/platform/HysteresisActivity.h	2017-07-18 23:22:46 UTC (rev 219640)
+++ trunk/Source/WebCore/platform/HysteresisActivity.h	2017-07-18 23:32:58 UTC (rev 219641)
@@ -26,7 +26,7 @@
 #ifndef HysteresisActivity_h
 #define HysteresisActivity_h
 
-#include "Timer.h"
+#include <wtf/RunLoop.h>
 #include <wtf/Seconds.h>
 
 namespace WebCore {
@@ -44,7 +44,7 @@
         : m_callback(WTFMove(callback))
         , m_hysteresisSeconds(hysteresisSeconds)
         , m_active(false)
-        , m_timer(*this, &HysteresisActivity::hysteresisTimerFired)
+        , m_timer(RunLoop::main(), this, &HysteresisActivity::hysteresisTimerFired)
     {
     }
 
@@ -92,7 +92,7 @@
     WTF::Function<void(HysteresisState)> m_callback;
     Seconds m_hysteresisSeconds;
     bool m_active;
-    Timer m_timer;
+    RunLoop::Timer<HysteresisActivity> m_timer;
 };
 
 } // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to