[webkit-changes] [WebKit/WebKit] 212997: InteractionRegion layers should follow animations

Commit Queue noreply at github.com
Tue May 2 09:08:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 21299797ed181e01ac3d2304002ff89c6c667988
      https://github.com/WebKit/WebKit/commit/21299797ed181e01ac3d2304002ff89c6c667988
  Author: Etienne Segonzac <sgz at apple.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm

  Log Message:
  -----------
  InteractionRegion layers should follow animations
https://bugs.webkit.org/show_bug.cgi?id=256197
<rdar://105841097>

Reviewed by Tim Horton.

Replicate animations on the InteractionRegion layers.
This works because of the symmetry between both trees, each
`RemoteLayerTreeNode` has its own InteractionRegion layer.
And animation keys are layer scoped so they can be reused on the
InteractionRegion side.

* Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm:
(WebKit::RemoteLayerTreePropertyApplier::applyProperties):
Call `updateLayerAnimations` for the InteractionRegion layer.
Don't pass a `LayerTreeHost` to avoid duplicating the `WKAnimationDelegate`.

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




More information about the webkit-changes mailing list