Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ab78a74247b81231d5b746c71e724db5fc8910c2
https://github.com/WebKit/WebKit/commit/ab78a74247b81231d5b746c71e724db5fc8910c2
Author: Simon Fraser <[email protected]>
Date: 2023-05-18 (Thu, 18 May 2023)
Changed paths:
M Source/WebKit/UIProcess/RemoteLayerTree/RemoteScrollingTree.cpp
M Source/WebKit/UIProcess/RemoteLayerTree/mac/RemoteScrollingTreeMac.mm
Log Message:
-----------
Avoid running WheelEventTestMonitor-related test-only code when not testing
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes