[webkit-changes] [WebKit/WebKit] 4ea01d: [view-transitions] Allow animations to run more th...

Tim Nguyen noreply at github.com
Thu Feb 15 08:38:58 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4ea01d73bca34b0351de5cf75c58ebb3ce72dd6a
      https://github.com/WebKit/WebKit/commit/4ea01d73bca34b0351de5cf75c58ebb3ce72dd6a
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2024-02-15 (Thu, 15 Feb 2024)

  Changed paths:
    A LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/pseudo-element-animations-expected.txt
    A LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/pseudo-element-animations.html
    M Source/WebCore/animation/WebAnimationUtilities.cpp
    M Source/WebCore/dom/ViewTransition.cpp

  Log Message:
  -----------
  [view-transitions] Allow animations to run more than once
https://bugs.webkit.org/show_bug.cgi?id=269460
rdar://123005914

Reviewed by Antoine Quint.

We need to cancel animations when the view transition ends, so they can be re-ran when the view transition is restarted.

Also add (incomplete) code to sort web animations for view transition pseudo-elements in tree order to avoid assertions.

* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/pseudo-element-animations-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/pseudo-element-animations.html: Added.
* Source/WebCore/animation/WebAnimationUtilities.cpp:
(WebCore::compareStyleOriginatedAnimationOwningElementPositionsInDocumentTreeOrder):
* Source/WebCore/dom/ViewTransition.cpp:
(WebCore::ViewTransition::clearViewTransition):

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




More information about the webkit-changes mailing list