Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid running WheelEventTestMonitor-related test-only code when not t…
…esting https://bugs.webkit.org/show_bug.cgi?id=256934 rdar://109488666 Reviewed by Wenson Hsieh. RemoteScrollingTreeMac::deferWheelEventTestCompletionForReason() and RemoteScrollingTreeMac::removeWheelEventTestCompletionDeferralForReason() would always trigger the hop to main thread, and IPC with the web process. We only need to do that when running layout tests that use `eventSender.monitorWheelEvents()`, and the RemoteScrollingTree already has a bit for that, so use it. * Source/WebKit/UIProcess/RemoteLayerTree/RemoteScrollingTree.cpp: (WebKit::RemoteScrollingTree::deferWheelEventTestCompletionForReason): (WebKit::RemoteScrollingTree::removeWheelEventTestCompletionDeferralForReason): * Source/WebKit/UIProcess/RemoteLayerTree/mac/RemoteScrollingTreeMac.mm: (WebKit::RemoteScrollingTreeMac::deferWheelEventTestCompletionForReason): (WebKit::RemoteScrollingTreeMac::removeWheelEventTestCompletionDeferralForReason): Canonical link: https://commits.webkit.org/264208@main
- Loading branch information