Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 38064a7e701cf50a2cd5fde82704d5aaa0a9cab2
      
https://github.com/WebKit/WebKit/commit/38064a7e701cf50a2cd5fde82704d5aaa0a9cab2
  Author: Antoine Quint <[email protected]>
  Date:   2025-11-15 (Sat, 15 Nov 2025)

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

  Log Message:
  -----------
  [web-animations] make `KeyframeEffectStack::hasMatchingEffect()` public and 
use it from `Styleable`.
https://bugs.webkit.org/show_bug.cgi?id=302567

Reviewed by Alan Baradlay.

We have a couple of places in `Styleable` where we iterate over effects to see 
if one is matching a
given condition. The `KeyframeEffectStack` class has a `hasMatchingEffect()` 
method to do just that,
so we make it public and use it from `Styleable` to make code a bit more 
expressive.

* Source/WebCore/animation/KeyframeEffectStack.h:
* Source/WebCore/style/Styleable.cpp:
(WebCore::Styleable::isRunningAcceleratedAnimationOfProperty const):
(WebCore::Styleable::isRunningAcceleratedTransformRelatedAnimation const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to