Changeset 259857 in webkit
- Timestamp:
- Apr 10, 2020, 3:32:42 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h (modified) (1 diff)
-
Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm (modified) (1 diff)
-
Source/WebKit/UIProcess/ViewGestureController.cpp (modified) (5 diffs)
-
Source/WebKit/UIProcess/ViewGestureController.h (modified) (2 diffs)
-
Source/WebKit/UIProcess/ios/ViewGestureControllerIOS.mm (modified) (2 diffs)
-
Source/WebKit/UIProcess/mac/ViewGestureControllerMac.mm (modified) (2 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r259856 r259857 1 2020-04-10 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r259818. 4 https://bugs.webkit.org/show_bug.cgi?id=210330 5 6 "Causes crashes in at least three layout tests on iOS bots." 7 (Requested by ddkilzer on #webkit). 8 9 Reverted changeset: 10 11 "Reset view navigation gesture state between tests" 12 https://bugs.webkit.org/show_bug.cgi?id=210283 13 https://trac.webkit.org/changeset/259818 14 1 15 2020-04-10 Claudio Saavedra <csaavedra@igalia.com> 2 16 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h
r259818 r259857 46 46 - (BOOL)_beginBackSwipeForTesting; 47 47 - (BOOL)_completeBackSwipeForTesting; 48 - (void)_resetNavigationGestureStateForTesting;49 48 - (void)_setDefersLoadingForTesting:(BOOL)defersLoading; 50 49 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm
r259843 r259857 144 144 } 145 145 146 - (void)_resetNavigationGestureStateForTesting147 {148 #if PLATFORM(MAC)149 if (auto gestureController = _impl->gestureController())150 gestureController->reset();151 #else152 if (_gestureController)153 _gestureController->reset();154 #endif155 }156 157 146 - (void)_setDefersLoadingForTesting:(BOOL)defersLoading 158 147 { -
trunk/Source/WebKit/UIProcess/ViewGestureController.cpp
r259818 r259857 130 130 void ViewGestureController::willBeginGesture(ViewGestureType type) 131 131 { 132 LOG(ViewGestures, "ViewGestureController::willBeginGesture %d", (int)type);133 134 132 m_activeGestureType = type; 135 133 m_currentGestureID = takeNextGestureID(); … … 138 136 void ViewGestureController::didEndGesture() 139 137 { 140 LOG(ViewGestures, "ViewGestureController::didEndGesture");141 142 138 m_activeGestureType = ViewGestureType::None; 143 139 m_currentGestureID = 0; … … 435 431 bool ViewGestureController::PendingSwipeTracker::handleEvent(PlatformScrollEvent event) 436 432 { 437 LOG(ViewGestures, "PendingSwipeTracker::handleEvent - state %d", (int)m_state);438 439 433 if (scrollEventCanEndSwipe(event)) { 440 434 reset("gesture ended"); … … 443 437 444 438 if (m_state == State::None) { 445 LOG(ViewGestures, "PendingSwipeTracker::handleEvent - scroll can become swipe %d shouldIgnorePinnedState %d, page will handle scrolls %d", scrollEventCanBecomeSwipe(event, m_direction), m_shouldIgnorePinnedState, m_webPageProxy.willHandleHorizontalScrollEvents());446 447 439 if (!scrollEventCanBecomeSwipe(event, m_direction)) 448 440 return false; … … 462 454 void ViewGestureController::PendingSwipeTracker::eventWasNotHandledByWebCore(PlatformScrollEvent event) 463 455 { 464 LOG(ViewGestures, "Swipe Start Hysteresis - WebCore didn't handle event, state %d", (int)m_state);465 466 456 if (m_state != State::WaitingForWebCore) 467 457 return; 468 458 459 LOG(ViewGestures, "Swipe Start Hysteresis - WebCore didn't handle event"); 469 460 m_state = State::None; 470 461 m_cumulativeDelta = FloatSize(); -
trunk/Source/WebKit/UIProcess/ViewGestureController.h
r259818 r259857 163 163 164 164 void removeSwipeSnapshot(); 165 void reset();166 165 167 166 void setSwipeGestureEnabled(bool enabled) { m_swipeGestureEnabled = enabled; } … … 186 185 void willBeginGesture(ViewGestureType); 187 186 void didEndGesture(); 188 void resetState();189 187 190 188 void didStartProvisionalOrSameDocumentLoadForMainFrame(); -
trunk/Source/WebKit/UIProcess/ios/ViewGestureControllerIOS.mm
r259818 r259857 419 419 } 420 420 421 resetState();422 }423 424 void ViewGestureController::resetState()425 {426 421 [m_snapshotView removeFromSuperview]; 427 422 m_snapshotView = nullptr; … … 439 434 } 440 435 441 void ViewGestureController::reset()442 {443 removeSwipeSnapshot();444 resetState();445 }446 447 436 bool ViewGestureController::beginSimulatedSwipeInDirectionForTesting(SwipeDirection direction) 448 437 { -
trunk/Source/WebKit/UIProcess/mac/ViewGestureControllerMac.mm
r259818 r259857 610 610 } 611 611 612 resetState();613 }614 615 void ViewGestureController::resetState()616 {617 612 if (m_currentSwipeSnapshot) 618 613 m_currentSwipeSnapshot->setVolatile(true); … … 643 638 } 644 639 645 void ViewGestureController::reset()646 {647 removeSwipeSnapshot();648 resetState();649 m_swipeCancellationTracker = nil; // FIXME: Move to reset state()?650 }651 652 640 double ViewGestureController::magnification() const 653 641 { -
trunk/Tools/ChangeLog
r259843 r259857 1 2020-04-10 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r259818. 4 https://bugs.webkit.org/show_bug.cgi?id=210330 5 6 "Causes crashes in at least three layout tests on iOS bots." 7 (Requested by ddkilzer on #webkit). 8 9 Reverted changeset: 10 11 "Reset view navigation gesture state between tests" 12 https://bugs.webkit.org/show_bug.cgi?id=210283 13 https://trac.webkit.org/changeset/259818 14 1 15 2020-04-08 Darin Adler <darin@apple.com> 2 16 -
trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm
r259843 r259857 278 278 [platformView _setContinuousSpellCheckingEnabledForTesting:options.shouldShowSpellCheckingDots]; 279 279 [platformView resetInteractionCallbacks]; 280 [platformView _resetNavigationGestureStateForTesting];281 280 } 282 281
Note:
See TracChangeset
for help on using the changeset viewer.