X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebKit2%2FUIProcess%2Fios%2FViewGestureControllerIOS.mm;h=8fe9a6e15450c4a886e389c6f035cb1c2830396e;hp=58be849e9c87d4e23e81adb8e075597850884d87;hb=173907ec430a2a4b500d8d58e6e141e8454686b9;hpb=3c5f3caa21f7e95e36aabb4c7bc3d1ca4af9fcf6 diff --git a/Source/WebKit2/UIProcess/ios/ViewGestureControllerIOS.mm b/Source/WebKit2/UIProcess/ios/ViewGestureControllerIOS.mm index 58be849e9c87..8fe9a6e15450 100644 --- a/Source/WebKit2/UIProcess/ios/ViewGestureControllerIOS.mm +++ b/Source/WebKit2/UIProcess/ios/ViewGestureControllerIOS.mm @@ -136,7 +136,7 @@ namespace WebKit { ViewGestureController::ViewGestureController(WebPageProxy& webPageProxy) : m_webPageProxy(webPageProxy) , m_activeGestureType(ViewGestureType::None) - , m_swipeWatchdogTimer(this, &ViewGestureController::swipeSnapshotWatchdogTimerFired) + , m_swipeWatchdogTimer(RunLoop::main(), this, &ViewGestureController::swipeSnapshotWatchdogTimerFired) , m_snapshotRemovalTargetRenderTreeSize(0) , m_shouldRemoveSnapshotWhenTargetRenderTreeSizeHit(false) { @@ -310,7 +310,7 @@ void ViewGestureController::setRenderTreeSize(uint64_t renderTreeSize) removeSwipeSnapshot(); } -void ViewGestureController::swipeSnapshotWatchdogTimerFired(Timer*) +void ViewGestureController::swipeSnapshotWatchdogTimerFired() { removeSwipeSnapshot(); }