[webkit-changes] [WebKit/WebKit] 3caac1: Use an effect iteration test method for various Ke...
Antoine Quint
noreply at github.com
Sun Nov 20 07:54:22 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3caac1b06ad4606f2a1aa1a045d6a299b677429a
https://github.com/WebKit/WebKit/commit/3caac1b06ad4606f2a1aa1a045d6a299b677429a
Author: Antoine Quint <graouts at apple.com>
Date: 2022-11-20 (Sun, 20 Nov 2022)
Changed paths:
M Source/WebCore/animation/KeyframeEffectStack.cpp
M Source/WebCore/animation/KeyframeEffectStack.h
Log Message:
-----------
Use an effect iteration test method for various KeyframeEffectStack methods iterating over effects
https://bugs.webkit.org/show_bug.cgi?id=248141
Reviewed by Alexey Shvayka.
Add the hasMatchingEffect() method which takes a function parameter expecting a `const KeyframeEffect`
to test for an effect matching a given condition.
* Source/WebCore/animation/KeyframeEffectStack.cpp:
(WebCore::KeyframeEffectStack::hasMatchingEffect const):
(WebCore::KeyframeEffectStack::containsProperty const):
(WebCore::KeyframeEffectStack::requiresPseudoElement const):
(WebCore::KeyframeEffectStack::hasEffectWithImplicitKeyframes const):
(WebCore::KeyframeEffectStack::allowsAcceleration const):
* Source/WebCore/animation/KeyframeEffectStack.h:
Canonical link: https://commits.webkit.org/256888@main
More information about the webkit-changes
mailing list