[webkit-changes] [WebKit/WebKit] 11d1cd: [web-animations] rename and move KeyframeList
Antoine Quint
noreply at github.com
Thu Dec 14 10:35:28 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 11d1cdb0666c38b6daf52511b645db1b8d89b793
https://github.com/WebKit/WebKit/commit/11d1cdb0666c38b6daf52511b645db1b8d89b793
Author: Antoine Quint <graouts at webkit.org>
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
A Source/WebCore/animation/BlendingKeyframes.cpp
A Source/WebCore/animation/BlendingKeyframes.h
M Source/WebCore/animation/KeyframeEffect.cpp
M Source/WebCore/animation/KeyframeEffect.h
M Source/WebCore/animation/KeyframeInterpolation.h
M Source/WebCore/inspector/agents/InspectorAnimationAgent.cpp
M Source/WebCore/platform/animation/AcceleratedEffect.cpp
M Source/WebCore/rendering/RenderElement.h
M Source/WebCore/rendering/RenderLayerBacking.cpp
M Source/WebCore/rendering/RenderLayerBacking.h
M Source/WebCore/rendering/RenderLayerModelObject.cpp
M Source/WebCore/rendering/RenderLayerModelObject.h
R Source/WebCore/rendering/style/KeyframeList.cpp
R Source/WebCore/rendering/style/KeyframeList.h
M Source/WebCore/style/StyleResolver.cpp
M Source/WebCore/style/StyleResolver.h
Log Message:
-----------
[web-animations] rename and move KeyframeList
https://bugs.webkit.org/show_bug.cgi?id=266409
rdar://119663662
Reviewed by Antti Koivisto.
The `KeyframeList` class is used almost exclusively in the animation code, so we move it
under the "animation" directory. We also refer to such keyframes as "blending keyframes"
in the animation code, so we take this opportunity to also rename `KeyframeList` as
`BlendingKeyframes` and `KeyframeValue` as `BlendingKeyframe`.
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/animation/BlendingKeyframes.cpp: Renamed from Source/WebCore/rendering/style/KeyframeList.cpp.
(WebCore::BlendingKeyframes::clear):
(WebCore::BlendingKeyframes::operator== const):
(WebCore::BlendingKeyframes::insert):
(WebCore::BlendingKeyframes::hasImplicitKeyframes const):
(WebCore::BlendingKeyframes::copyKeyframes):
(WebCore::zeroPercentKeyframe):
(WebCore::hundredPercentKeyframe):
(WebCore::BlendingKeyframes::fillImplicitKeyframes):
(WebCore::BlendingKeyframes::containsAnimatableCSSProperty const):
(WebCore::BlendingKeyframes::containsDirectionAwareProperty const):
(WebCore::BlendingKeyframes::usesContainerUnits const):
(WebCore::BlendingKeyframes::addProperty):
(WebCore::BlendingKeyframes::containsProperty const):
(WebCore::BlendingKeyframes::usesRelativeFontWeight const):
(WebCore::BlendingKeyframes::hasCSSVariableReferences const):
(WebCore::BlendingKeyframes::hasColorSetToCurrentColor const):
(WebCore::BlendingKeyframes::hasPropertySetToCurrentColor const):
(WebCore::BlendingKeyframes::propertiesSetToInherit const):
(WebCore::BlendingKeyframes::updatePropertiesMetadata):
(WebCore::BlendingKeyframe::addProperty):
(WebCore::BlendingKeyframe::animatesProperty const):
* Source/WebCore/animation/BlendingKeyframes.h: Renamed from Source/WebCore/rendering/style/KeyframeList.h.
(WebCore::BlendingKeyframes::BlendingKeyframes):
(WebCore::BlendingKeyframes::animationName const):
(WebCore::BlendingKeyframes::properties const):
(WebCore::BlendingKeyframes::isEmpty const):
(WebCore::BlendingKeyframes::size const):
(WebCore::BlendingKeyframes::operator[] const):
(WebCore::BlendingKeyframes::begin const):
(WebCore::BlendingKeyframes::end const):
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::copyPropertiesFromSource):
(WebCore::KeyframeEffect::getKeyframes):
(WebCore::KeyframeEffect::updateBlendingKeyframes):
(WebCore::KeyframeEffect::setBlendingKeyframes):
(WebCore::KeyframeEffect::computeCSSAnimationBlendingKeyframes):
(WebCore::KeyframeEffect::computeCSSTransitionBlendingKeyframes):
(WebCore::KeyframeEffect::setAnimatedPropertiesInStyle):
(WebCore::KeyframeEffect::timingFunctionForBlendingKeyframe const):
(WebCore::KeyframeEffect::applyPendingAcceleratedActions):
(WebCore::KeyframeEffect::timingFunctionForKeyframe const):
* Source/WebCore/animation/KeyframeEffect.h:
* Source/WebCore/animation/KeyframeInterpolation.h:
(WebCore::KeyframeInterpolation::Keyframe::isBlendingKeyframe const):
(WebCore::KeyframeInterpolation::Keyframe::isKeyframeValue const): Deleted.
* Source/WebCore/inspector/agents/InspectorAnimationAgent.cpp:
* Source/WebCore/platform/animation/AcceleratedEffect.cpp:
* Source/WebCore/rendering/RenderElement.h:
(WebCore::RenderElement::startAnimation):
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::startAnimation):
* Source/WebCore/rendering/RenderLayerBacking.h:
* Source/WebCore/rendering/RenderLayerModelObject.cpp:
(WebCore::RenderLayerModelObject::startAnimation):
* Source/WebCore/rendering/RenderLayerModelObject.h:
* Source/WebCore/style/StyleResolver.cpp:
(WebCore::Style::Resolver::styleForKeyframe):
(WebCore::Style::Resolver::keyframeStylesForAnimation):
* Source/WebCore/style/StyleResolver.h:
Canonical link: https://commits.webkit.org/272055@main
More information about the webkit-changes
mailing list