Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 28a06fc72f32a1ccbb5a3a09924253efb4a5469e
      
https://github.com/WebKit/WebKit/commit/28a06fc72f32a1ccbb5a3a09924253efb4a5469e
  Author: Antoine Quint <grao...@webkit.org>
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
    M Source/WebCore/animation/StyleOriginatedAnimation.cpp
    M Source/WebCore/animation/StyleOriginatedAnimation.h
    M Source/WebCore/animation/WebAnimation.cpp
    M Source/WebCore/animation/WebAnimation.h
    M Source/WebCore/style/Styleable.cpp
    M Source/WebCore/style/Styleable.h

  Log Message:
  -----------
  [web-animations] add support for canceling style-originated animations 
silently
https://bugs.webkit.org/show_bug.cgi?id=271365

Reviewed by Antti Koivisto.

When we will be adding animation support for the `display` property (see bug 
267762) we will
need to resolve animations even when the underlying style has `display: none` 
to see whether
animations yield a different value. In that process, we may create 
style-originated animations
that will ultimately be canceled once we're certain `display: none` is still 
set.

In 276414@main we created a list of style-originated animations created during 
a style update.

We now add support for canceling that group of style-originated animations in a 
way that is not
script observable, or "silently" in Web Animations parlance.

Once we get to add animation support for the `display` property proper, we will 
add a call to
`StyleOriginatedAnimation::cancelFromStyle()` with the list of newly-created 
style-originated
animations that require silent cancelation.

* Source/WebCore/animation/StyleOriginatedAnimation.cpp:
(WebCore::StyleOriginatedAnimation::cancel):
(WebCore::StyleOriginatedAnimation::cancelFromStyle):
* Source/WebCore/animation/StyleOriginatedAnimation.h:
* Source/WebCore/animation/WebAnimation.cpp:
(WebCore::WebAnimation::cancel):
* Source/WebCore/animation/WebAnimation.h:
* Source/WebCore/style/Styleable.cpp:
(WebCore::Styleable::cancelStyleOriginatedAnimations const):
* Source/WebCore/style/Styleable.h:
(WebCore::Styleable::cancelStyleOriginatedAnimations):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to