+2017-07-18 Chris Dumez <cdumez@apple.com>
+
+ 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 <pecoraro@apple.com>
Web Inspector: Modernize InjectedScriptSource
#ifndef HysteresisActivity_h
#define HysteresisActivity_h
-#include "Timer.h"
+#include <wtf/RunLoop.h>
#include <wtf/Seconds.h>
namespace WebCore {
: m_callback(WTFMove(callback))
, m_hysteresisSeconds(hysteresisSeconds)
, m_active(false)
- , m_timer(*this, &HysteresisActivity::hysteresisTimerFired)
+ , m_timer(RunLoop::main(), this, &HysteresisActivity::hysteresisTimerFired)
{
}
WTF::Function<void(HysteresisState)> m_callback;
Seconds m_hysteresisSeconds;
bool m_active;
- Timer m_timer;
+ RunLoop::Timer<HysteresisActivity> m_timer;
};
} // namespace WebCore