[webkit-changes] [WebKit/WebKit] dacbd7: Prepare MomentumEventDispatcher to be used with UI...

Simon Fraser noreply at github.com
Sat Feb 18 19:30:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dacbd7c36056647c1867f34236ade6815002e1f1
      https://github.com/WebKit/WebKit/commit/dacbd7c36056647c1867f34236ade6815002e1f1
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2023-02-18 (Sat, 18 Feb 2023)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp
    M Source/WebKit/WebProcess/WebPage/EventDispatcher.h
    M Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp
    M Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.h

  Log Message:
  -----------
  Prepare MomentumEventDispatcher to be used with UI-side compositing
https://bugs.webkit.org/show_bug.cgi?id=252537
rdar://105635572

Reviewed by Tim Horton.

Give MomentumEventDispatcher a Client interface that's implemented by EventDispatcher.

MomentumEventDispatcher needs public inheritance from IPC::MessageReceiver so we can make a WeakPtr
from it.

* Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp:
(WebKit::EventDispatcher::setScrollingAccelerationCurve):
(WebKit::EventDispatcher::handleSyntheticWheelEvent):
(WebKit::EventDispatcher::flushMomentumEventLoggingSoon):
* Source/WebKit/WebProcess/WebPage/EventDispatcher.h:
* Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp:
(WebKit::MomentumEventDispatcher::MomentumEventDispatcher):
(WebKit::MomentumEventDispatcher::dispatchSyntheticMomentumEvent):
(WebKit::MomentumEventDispatcher::didEndMomentumPhase):
* Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.h:

Canonical link: https://commits.webkit.org/260522@main




More information about the webkit-changes mailing list