_setDidMoveSwipeSnapshotCallback's block should only be called if the snapshot is...
[WebKit-https.git] / Source / WebKit2 / UIProcess / mac / ViewGestureControllerMac.mm
index 9b71b9bcdf4844025aaf8a09d75c26a2f6215f44..5d64d96c04a28109a57ce86e3325c31ffa549c0c 100644 (file)
@@ -608,8 +608,6 @@ void ViewGestureController::beginSwipeGesture(WebBackForwardListItem* targetItem
         [snapshotLayerParent insertSublayer:m_swipeLayer.get() below:layerAdjacentToSnapshot];
     else
         [snapshotLayerParent insertSublayer:m_swipeLayer.get() above:layerAdjacentToSnapshot];
-
-    didMoveSwipeSnapshotLayer();
 }
 
 void ViewGestureController::handleSwipeGesture(WebBackForwardListItem* targetItem, double progress, SwipeDirection direction)