Skip to content

Commit

Permalink
[web-animations] rename AnimatableProperty to AnimatableCSSProperty
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264499

Reviewed by Chris Dumez.

The name AnimatableProperty currently used is more generic than needed since this only covers CSS properties at
the moment. So it is best to rename as AnimatableCSSProperty.

* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyBlendingContext::CSSPropertyBlendingContext):
(WebCore::CSSPropertyAnimation::blendProperty):
(WebCore::CSSPropertyAnimation::isPropertyAnimatable):
(WebCore::CSSPropertyAnimation::isPropertyAdditiveOrCumulative):
(WebCore::CSSPropertyAnimation::propertyRequiresBlendingForAccumulativeIteration):
(WebCore::CSSPropertyAnimation::animationOfPropertyIsAccelerated):
(WebCore::CSSPropertyAnimation::propertiesEqual):
(WebCore::CSSPropertyAnimation::canPropertyBeInterpolated):
* Source/WebCore/animation/CSSPropertyAnimation.h:
* Source/WebCore/animation/CSSTransition.cpp:
(WebCore::CSSTransition::create):
(WebCore::CSSTransition::CSSTransition):
* Source/WebCore/animation/CSSTransition.h:
* Source/WebCore/animation/DocumentTimeline.cpp:
(WebCore::DocumentTimeline::animationCanBeRemoved):
* Source/WebCore/animation/ElementAnimationRareData.h:
(WebCore::ElementAnimationRareData::completedTransitionsByProperty):
(WebCore::ElementAnimationRareData::runningTransitionsByProperty):
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::getKeyframes):
(WebCore::KeyframeEffect::animatedProperties):
(WebCore::KeyframeEffect::animatesProperty const):
(WebCore::KeyframeEffect::setAnimatedPropertiesInStyle):
(WebCore::acceleratedPropertyDidChange):
* Source/WebCore/animation/KeyframeEffect.h:
* Source/WebCore/animation/KeyframeEffectStack.cpp:
(WebCore::KeyframeEffectStack::applyKeyframeEffects):
(WebCore::KeyframeEffectStack::cascadeDidOverrideProperties):
* Source/WebCore/animation/KeyframeEffectStack.h:
(WebCore::KeyframeEffectStack::acceleratedPropertiesOverriddenByCascade const):
* Source/WebCore/animation/WebAnimation.cpp:
(WebCore::WebAnimation::commitStyles):
* Source/WebCore/animation/WebAnimationTypes.h:
(WTF::DefaultHash<WebCore::AnimatableCSSProperty>::hash):
(WTF::DefaultHash<WebCore::AnimatableCSSProperty>::equal):
(WTF::HashTraits<WebCore::AnimatableCSSProperty>::constructDeletedValue):
(WTF::HashTraits<WebCore::AnimatableCSSProperty>::isDeletedValue):
(WTF::DefaultHash<WebCore::AnimatableProperty>::hash): Deleted.
(WTF::DefaultHash<WebCore::AnimatableProperty>::equal): Deleted.
(WTF::HashTraits<WebCore::AnimatableProperty>::constructDeletedValue): Deleted.
(WTF::HashTraits<WebCore::AnimatableProperty>::isDeletedValue): Deleted.
* Source/WebCore/animation/WebAnimationUtilities.cpp:
(WebCore::animatablePropertyAsString):
* Source/WebCore/animation/WebAnimationUtilities.h:
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::hasCompletedTransitionForProperty const):
(WebCore::Element::hasRunningTransitionForProperty const):
(WebCore::Element::completedTransitionsByProperty const):
(WebCore::Element::runningTransitionsByProperty const):
(WebCore::Element::ensureCompletedTransitionsByProperty):
(WebCore::Element::ensureRunningTransitionsByProperty):
* Source/WebCore/dom/Element.h:
* Source/WebCore/page/ios/ContentChangeObserver.cpp:
(WebCore::isObservedPropertyForTransition):
* Source/WebCore/platform/animation/AcceleratedEffect.cpp:
(WebCore::acceleratedPropertyFromCSSProperty):
* Source/WebCore/platform/animation/Animation.h:
* Source/WebCore/rendering/style/KeyframeList.cpp:
(WebCore::KeyframeList::fillImplicitKeyframes):
(WebCore::KeyframeList::containsAnimatableCSSProperty const):
(WebCore::KeyframeList::addProperty):
(WebCore::KeyframeList::containsProperty const):
(WebCore::KeyframeList::propertiesSetToInherit const):
(WebCore::KeyframeValue::addProperty):
(WebCore::KeyframeValue::containsProperty const):
(WebCore::KeyframeList::containsAnimatableProperty const): Deleted.
* Source/WebCore/rendering/style/KeyframeList.h:
(WebCore::KeyframeValue::properties const):
(WebCore::KeyframeList::properties const):
* Source/WebCore/style/PropertyCascade.cpp:
(WebCore::Style::PropertyCascade::PropertyCascade):
(WebCore::Style::PropertyCascade::AnimationLayer::AnimationLayer):
(WebCore::Style::PropertyCascade::overriddenAnimatedProperties const):
* Source/WebCore/style/PropertyCascade.h:
* Source/WebCore/style/StyleBuilder.cpp:
(WebCore::Style::Builder::Builder):
* Source/WebCore/style/StyleBuilder.h:
(WebCore::Style::Builder::overriddenAnimatedProperties const):
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::createAnimatedElementUpdate):
(WebCore::Style::TreeResolver::applyCascadeAfterAnimation):
* Source/WebCore/style/StyleTreeResolver.h:
* Source/WebCore/style/Styleable.cpp:
(WebCore::removeCSSTransitionFromMap):
(WebCore::Styleable::animationWasRemoved const):
(WebCore::keyframeEffectForElementAndProperty):
(WebCore::propertyInStyleMatchesValueForTransitionInMap):
(WebCore::transitionMatchesProperty):
(WebCore::updateCSSTransitionsForStyleableAndProperty):
(WebCore::Styleable::updateCSSTransitions const):
* Source/WebCore/style/Styleable.h:
(WebCore::Styleable::applyKeyframeEffects const):
(WebCore::Styleable::hasCompletedTransitionForProperty const):
(WebCore::Styleable::hasRunningTransitionForProperty const):
(WebCore::Styleable::ensureCompletedTransitionsByProperty const):
(WebCore::Styleable::ensureRunningTransitionsByProperty const):

Canonical link: https://commits.webkit.org/270465@main
  • Loading branch information
graouts committed Nov 9, 2023
1 parent bee60e1 commit 82e4075
Show file tree
Hide file tree
Showing 29 changed files with 118 additions and 118 deletions.
18 changes: 9 additions & 9 deletions Source/WebCore/animation/CSSPropertyAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ static TextStream& operator<<(TextStream& stream, CSSPropertyID property)

struct CSSPropertyBlendingContext : BlendingContext {
const CSSPropertyBlendingClient& client;
AnimatableProperty property;
AnimatableCSSProperty property;

CSSPropertyBlendingContext(double progress, bool isDiscrete, CompositeOperation compositeOperation, const CSSPropertyBlendingClient& client, const AnimatableProperty& property, IterationCompositeOperation iterationCompositeOperation = IterationCompositeOperation::Replace, double currentIteration = 0)
CSSPropertyBlendingContext(double progress, bool isDiscrete, CompositeOperation compositeOperation, const CSSPropertyBlendingClient& client, const AnimatableCSSProperty& property, IterationCompositeOperation iterationCompositeOperation = IterationCompositeOperation::Replace, double currentIteration = 0)
: BlendingContext(progress, isDiscrete, compositeOperation, iterationCompositeOperation, currentIteration)
, client(client)
, property(property)
Expand Down Expand Up @@ -4374,7 +4374,7 @@ static void blendCustomProperty(const CSSPropertyBlendingClient& client, const A
destination.setCustomPropertyValue(blendedCSSCustomPropertyValue(from, to, *fromValue, *toValue, blendingContext), isInherited);
}

void CSSPropertyAnimation::blendProperty(const CSSPropertyBlendingClient& client, const AnimatableProperty& property, RenderStyle& destination, const RenderStyle& from, const RenderStyle& to, double progress, CompositeOperation compositeOperation, IterationCompositeOperation iterationCompositeOperation, double currentIteration)
void CSSPropertyAnimation::blendProperty(const CSSPropertyBlendingClient& client, const AnimatableCSSProperty& property, RenderStyle& destination, const RenderStyle& from, const RenderStyle& to, double progress, CompositeOperation compositeOperation, IterationCompositeOperation iterationCompositeOperation, double currentIteration)
{
WTF::switchOn(property,
[&] (CSSPropertyID propertyId) {
Expand All @@ -4385,7 +4385,7 @@ void CSSPropertyAnimation::blendProperty(const CSSPropertyBlendingClient& client
);
}

bool CSSPropertyAnimation::isPropertyAnimatable(const AnimatableProperty& property)
bool CSSPropertyAnimation::isPropertyAnimatable(const AnimatableCSSProperty& property)
{
return WTF::switchOn(property,
[] (CSSPropertyID propertyId) {
Expand All @@ -4398,7 +4398,7 @@ bool CSSPropertyAnimation::isPropertyAnimatable(const AnimatableProperty& proper
);
}

bool CSSPropertyAnimation::isPropertyAdditiveOrCumulative(const AnimatableProperty& property)
bool CSSPropertyAnimation::isPropertyAdditiveOrCumulative(const AnimatableCSSProperty& property)
{
return WTF::switchOn(property,
[] (CSSPropertyID propertyId) {
Expand All @@ -4423,7 +4423,7 @@ static bool syntaxValuesRequireBlendingForAccumulativeIteration(const CSSCustomP
});
}

bool CSSPropertyAnimation::propertyRequiresBlendingForAccumulativeIteration(const CSSPropertyBlendingClient&, const AnimatableProperty& property, const RenderStyle& a, const RenderStyle& b)
bool CSSPropertyAnimation::propertyRequiresBlendingForAccumulativeIteration(const CSSPropertyBlendingClient&, const AnimatableCSSProperty& property, const RenderStyle& a, const RenderStyle& b)
{
return WTF::switchOn(property,
[&] (CSSPropertyID propertyId) {
Expand Down Expand Up @@ -4458,7 +4458,7 @@ bool CSSPropertyAnimation::propertyRequiresBlendingForAccumulativeIteration(cons
);
}

bool CSSPropertyAnimation::animationOfPropertyIsAccelerated(const AnimatableProperty& property, const Settings& settings)
bool CSSPropertyAnimation::animationOfPropertyIsAccelerated(const AnimatableCSSProperty& property, const Settings& settings)
{
return WTF::switchOn(property,
[&] (CSSPropertyID cssProperty) {
Expand All @@ -4469,7 +4469,7 @@ bool CSSPropertyAnimation::animationOfPropertyIsAccelerated(const AnimatableProp
);
}

bool CSSPropertyAnimation::propertiesEqual(const AnimatableProperty& property, const RenderStyle& a, const RenderStyle& b, const Document&)
bool CSSPropertyAnimation::propertiesEqual(const AnimatableCSSProperty& property, const RenderStyle& a, const RenderStyle& b, const Document&)
{
return WTF::switchOn(property,
[&] (CSSPropertyID propertyId) {
Expand Down Expand Up @@ -4515,7 +4515,7 @@ static bool typeOfSyntaxValueCanBeInterpolated(const CSSCustomPropertyValue::Syn
);
}

bool CSSPropertyAnimation::canPropertyBeInterpolated(const AnimatableProperty& property, const RenderStyle& a, const RenderStyle& b, const Document&)
bool CSSPropertyAnimation::canPropertyBeInterpolated(const AnimatableCSSProperty& property, const RenderStyle& a, const RenderStyle& b, const Document&)
{
return WTF::switchOn(property,
[&] (CSSPropertyID propertyId) {
Expand Down
14 changes: 7 additions & 7 deletions Source/WebCore/animation/CSSPropertyAnimation.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ class Settings;

class CSSPropertyAnimation {
public:
static bool isPropertyAnimatable(const AnimatableProperty&);
static bool isPropertyAdditiveOrCumulative(const AnimatableProperty&);
static bool propertyRequiresBlendingForAccumulativeIteration(const CSSPropertyBlendingClient&, const AnimatableProperty&, const RenderStyle& a, const RenderStyle& b);
static bool animationOfPropertyIsAccelerated(const AnimatableProperty&, const Settings&);
static bool propertiesEqual(const AnimatableProperty&, const RenderStyle& a, const RenderStyle& b, const Document&);
static bool canPropertyBeInterpolated(const AnimatableProperty&, const RenderStyle& a, const RenderStyle& b, const Document&);
static bool isPropertyAnimatable(const AnimatableCSSProperty&);
static bool isPropertyAdditiveOrCumulative(const AnimatableCSSProperty&);
static bool propertyRequiresBlendingForAccumulativeIteration(const CSSPropertyBlendingClient&, const AnimatableCSSProperty&, const RenderStyle& a, const RenderStyle& b);
static bool animationOfPropertyIsAccelerated(const AnimatableCSSProperty&, const Settings&);
static bool propertiesEqual(const AnimatableCSSProperty&, const RenderStyle& a, const RenderStyle& b, const Document&);
static bool canPropertyBeInterpolated(const AnimatableCSSProperty&, const RenderStyle& a, const RenderStyle& b, const Document&);
static CSSPropertyID getPropertyAtIndex(int, std::optional<bool>& isShorthand);
static std::optional<CSSPropertyID> getAcceleratedPropertyAtIndex(int, const Settings&);
static int getNumProperties();

static void blendProperty(const CSSPropertyBlendingClient&, const AnimatableProperty&, RenderStyle& destination, const RenderStyle& from, const RenderStyle& to, double progress, CompositeOperation, IterationCompositeOperation = IterationCompositeOperation::Replace, double currentIteration = 0);
static void blendProperty(const CSSPropertyBlendingClient&, const AnimatableCSSProperty&, RenderStyle& destination, const RenderStyle& from, const RenderStyle& to, double progress, CompositeOperation, IterationCompositeOperation = IterationCompositeOperation::Replace, double currentIteration = 0);
};

} // namespace WebCore
4 changes: 2 additions & 2 deletions Source/WebCore/animation/CSSTransition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace WebCore {

WTF_MAKE_ISO_ALLOCATED_IMPL(CSSTransition);

Ref<CSSTransition> CSSTransition::create(const Styleable& owningElement, const AnimatableProperty& property, MonotonicTime generationTime, const Animation& backingAnimation, const RenderStyle& oldStyle, const RenderStyle& newStyle, Seconds delay, Seconds duration, const RenderStyle& reversingAdjustedStartStyle, double reversingShorteningFactor)
Ref<CSSTransition> CSSTransition::create(const Styleable& owningElement, const AnimatableCSSProperty& property, MonotonicTime generationTime, const Animation& backingAnimation, const RenderStyle& oldStyle, const RenderStyle& newStyle, Seconds delay, Seconds duration, const RenderStyle& reversingAdjustedStartStyle, double reversingShorteningFactor)
{
auto result = adoptRef(*new CSSTransition(owningElement, property, generationTime, backingAnimation, oldStyle, newStyle, reversingAdjustedStartStyle, reversingShorteningFactor));
result->initialize(&oldStyle, newStyle, { nullptr });
Expand All @@ -49,7 +49,7 @@ Ref<CSSTransition> CSSTransition::create(const Styleable& owningElement, const A
return result;
}

CSSTransition::CSSTransition(const Styleable& styleable, const AnimatableProperty& property, MonotonicTime generationTime, const Animation& backingAnimation, const RenderStyle& oldStyle, const RenderStyle& targetStyle, const RenderStyle& reversingAdjustedStartStyle, double reversingShorteningFactor)
CSSTransition::CSSTransition(const Styleable& styleable, const AnimatableCSSProperty& property, MonotonicTime generationTime, const Animation& backingAnimation, const RenderStyle& oldStyle, const RenderStyle& targetStyle, const RenderStyle& reversingAdjustedStartStyle, double reversingShorteningFactor)
: DeclarativeAnimation(styleable, backingAnimation)
, m_property(property)
, m_generationTime(generationTime)
Expand Down
8 changes: 4 additions & 4 deletions Source/WebCore/animation/CSSTransition.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ class RenderStyle;
class CSSTransition final : public DeclarativeAnimation {
WTF_MAKE_ISO_ALLOCATED(CSSTransition);
public:
static Ref<CSSTransition> create(const Styleable&, const AnimatableProperty&, MonotonicTime generationTime, const Animation&, const RenderStyle& oldStyle, const RenderStyle& newStyle, Seconds delay, Seconds duration, const RenderStyle& reversingAdjustedStartStyle, double);
static Ref<CSSTransition> create(const Styleable&, const AnimatableCSSProperty&, MonotonicTime generationTime, const Animation&, const RenderStyle& oldStyle, const RenderStyle& newStyle, Seconds delay, Seconds duration, const RenderStyle& reversingAdjustedStartStyle, double);
~CSSTransition() = default;

const AtomString transitionProperty() const;
AnimatableProperty property() const { return m_property; }
AnimatableCSSProperty property() const { return m_property; }
MonotonicTime generationTime() const { return m_generationTime; }
std::optional<Seconds> timelineTimeAtCreation() const { return m_timelineTimeAtCreation; }
const RenderStyle& targetStyle() const { return *m_targetStyle; }
Expand All @@ -55,14 +55,14 @@ class CSSTransition final : public DeclarativeAnimation {
double reversingShorteningFactor() const { return m_reversingShorteningFactor; }

private:
CSSTransition(const Styleable&, const AnimatableProperty&, MonotonicTime generationTime, const Animation&, const RenderStyle& oldStyle, const RenderStyle& targetStyle, const RenderStyle& reversingAdjustedStartStyle, double);
CSSTransition(const Styleable&, const AnimatableCSSProperty&, MonotonicTime generationTime, const Animation&, const RenderStyle& oldStyle, const RenderStyle& targetStyle, const RenderStyle& reversingAdjustedStartStyle, double);
void setTimingProperties(Seconds delay, Seconds duration);
Ref<DeclarativeAnimationEvent> createEvent(const AtomString& eventType, std::optional<Seconds> scheduledTime, double elapsedTime, PseudoId) final;
void resolve(RenderStyle& targetStyle, const Style::ResolutionContext&, std::optional<Seconds>) final;
void animationDidFinish() final;
bool isCSSTransition() const final { return true; }

AnimatableProperty m_property;
AnimatableCSSProperty m_property;
MonotonicTime m_generationTime;
Markable<Seconds, Seconds::MarkableTraits> m_timelineTimeAtCreation;
std::unique_ptr<RenderStyle> m_targetStyle;
Expand Down
4 changes: 2 additions & 2 deletions Source/WebCore/animation/DocumentTimeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ IGNORE_GCC_WARNINGS_BEGIN("dangling-reference")
}();
IGNORE_GCC_WARNINGS_END

auto resolvedProperty = [&] (AnimatableProperty property) -> AnimatableProperty {
auto resolvedProperty = [&] (AnimatableCSSProperty property) -> AnimatableCSSProperty {
if (std::holds_alternative<CSSPropertyID>(property))
return CSSProperty::resolveDirectionAwareProperty(std::get<CSSPropertyID>(property), style.direction(), style.writingMode());
return property;
};

HashSet<AnimatableProperty> propertiesToMatch;
HashSet<AnimatableCSSProperty> propertiesToMatch;
for (auto property : keyframeEffect.animatedProperties())
propertiesToMatch.add(resolvedProperty(property));

Expand Down
8 changes: 4 additions & 4 deletions Source/WebCore/animation/ElementAnimationRareData.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class ElementAnimationRareData {
AnimationCollection& animations() { return m_animations; }
CSSAnimationCollection& animationsCreatedByMarkup() { return m_animationsCreatedByMarkup; }
void setAnimationsCreatedByMarkup(CSSAnimationCollection&&);
AnimatablePropertyToTransitionMap& completedTransitionsByProperty() { return m_completedTransitionsByProperty; }
AnimatablePropertyToTransitionMap& runningTransitionsByProperty() { return m_runningTransitionsByProperty; }
AnimatableCSSPropertyToTransitionMap& completedTransitionsByProperty() { return m_completedTransitionsByProperty; }
AnimatableCSSPropertyToTransitionMap& runningTransitionsByProperty() { return m_runningTransitionsByProperty; }
const RenderStyle* lastStyleChangeEventStyle() const { return m_lastStyleChangeEventStyle.get(); }
void setLastStyleChangeEventStyle(std::unique_ptr<const RenderStyle>&&);
void cssAnimationsDidUpdate() { m_hasPendingKeyframesUpdate = false; }
Expand All @@ -65,8 +65,8 @@ class ElementAnimationRareData {
std::unique_ptr<const RenderStyle> m_lastStyleChangeEventStyle;
AnimationCollection m_animations;
CSSAnimationCollection m_animationsCreatedByMarkup;
AnimatablePropertyToTransitionMap m_completedTransitionsByProperty;
AnimatablePropertyToTransitionMap m_runningTransitionsByProperty;
AnimatableCSSPropertyToTransitionMap m_completedTransitionsByProperty;
AnimatableCSSPropertyToTransitionMap m_runningTransitionsByProperty;
PseudoId m_pseudoId;
bool m_hasPendingKeyframesUpdate { false };
};
Expand Down
10 changes: 5 additions & 5 deletions Source/WebCore/animation/KeyframeEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ auto KeyframeEffect::getKeyframes() -> Vector<ComputedKeyframe>

Vector<ComputedKeyframe> computedKeyframes;

if (!m_parsedKeyframes.isEmpty() || m_animationType == WebAnimationType::WebAnimation || !m_blendingKeyframes.containsAnimatableProperty()) {
if (!m_parsedKeyframes.isEmpty() || m_animationType == WebAnimationType::WebAnimation || !m_blendingKeyframes.containsAnimatableCSSProperty()) {
for (size_t i = 0; i < m_parsedKeyframes.size(); ++i) {
auto& parsedKeyframe = m_parsedKeyframes[i];
ComputedKeyframe computedKeyframe { parsedKeyframe };
Expand Down Expand Up @@ -922,7 +922,7 @@ void KeyframeEffect::updateBlendingKeyframes(RenderStyle& elementStyle, const St
setBlendingKeyframes(WTFMove(keyframeList));
}

const HashSet<AnimatableProperty>& KeyframeEffect::animatedProperties()
const HashSet<AnimatableCSSProperty>& KeyframeEffect::animatedProperties()
{
if (!m_blendingKeyframes.isEmpty())
return m_blendingKeyframes.properties();
Expand All @@ -939,7 +939,7 @@ const HashSet<AnimatableProperty>& KeyframeEffect::animatedProperties()
return m_animatedProperties;
}

bool KeyframeEffect::animatesProperty(const AnimatableProperty& property) const
bool KeyframeEffect::animatesProperty(const AnimatableCSSProperty& property) const
{
if (!m_blendingKeyframes.isEmpty())
return m_blendingKeyframes.containsProperty(property);
Expand Down Expand Up @@ -1503,7 +1503,7 @@ void KeyframeEffect::setAnimatedPropertiesInStyle(RenderStyle& targetStyle, doub
KeyframeValue propertySpecificKeyframeWithZeroOffset(0, RenderStyle::clonePtr(targetStyle));
KeyframeValue propertySpecificKeyframeWithOneOffset(1, RenderStyle::clonePtr(targetStyle));

auto blendProperty = [&](AnimatableProperty property) {
auto blendProperty = [&](AnimatableCSSProperty property) {
// 1. If iteration progress is unresolved abort this procedure.
// 2. Let target property be the longhand property for which the effect value is to be calculated.
// 3. If animation type of the target property is not animatable abort this procedure since the effect cannot be applied.
Expand Down Expand Up @@ -2716,7 +2716,7 @@ KeyframeEffect::CanBeAcceleratedMutationScope::~CanBeAcceleratedMutationScope()
}

#if ENABLE(THREADED_ANIMATION_RESOLUTION)
static bool acceleratedPropertyDidChange(AnimatableProperty property, const RenderStyle& previousStyle, const RenderStyle& currentStyle, const Settings& settings)
static bool acceleratedPropertyDidChange(AnimatableCSSProperty property, const RenderStyle& previousStyle, const RenderStyle& currentStyle, const Settings& settings)
{
#if ASSERT_ENABLED
ASSERT(CSSPropertyAnimation::animationOfPropertyIsAccelerated(property, settings));
Expand Down
6 changes: 3 additions & 3 deletions Source/WebCore/animation/KeyframeEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ class KeyframeEffect final : public AnimationEffect, public CSSPropertyBlendingC

void computeDeclarativeAnimationBlendingKeyframes(const RenderStyle* oldStyle, const RenderStyle& newStyle, const Style::ResolutionContext&);
const KeyframeList& blendingKeyframes() const { return m_blendingKeyframes; }
const HashSet<AnimatableProperty>& animatedProperties();
bool animatesProperty(const AnimatableProperty&) const;
const HashSet<AnimatableCSSProperty>& animatedProperties();
bool animatesProperty(const AnimatableCSSProperty&) const;

bool computeExtentOfTransformAnimation(LayoutRect&) const;
bool computeTransformedExtentViaTransformList(const FloatRect&, const RenderStyle&, LayoutRect&) const;
Expand Down Expand Up @@ -268,7 +268,7 @@ class KeyframeEffect final : public AnimationEffect, public CSSPropertyBlendingC

AtomString m_keyframesName;
KeyframeList m_blendingKeyframes { emptyAtom() };
HashSet<AnimatableProperty> m_animatedProperties;
HashSet<AnimatableCSSProperty> m_animatedProperties;
Vector<ParsedKeyframe> m_parsedKeyframes;
Vector<AcceleratedAction> m_pendingAcceleratedActions;
RefPtr<Element> m_target;
Expand Down
6 changes: 3 additions & 3 deletions Source/WebCore/animation/KeyframeEffectStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void KeyframeEffectStack::setCSSAnimationList(RefPtr<const AnimationList>&& cssA
m_isSorted = false;
}

OptionSet<AnimationImpact> KeyframeEffectStack::applyKeyframeEffects(RenderStyle& targetStyle, HashSet<AnimatableProperty>& affectedProperties, const RenderStyle* previousLastStyleChangeEventStyle, const Style::ResolutionContext& resolutionContext)
OptionSet<AnimationImpact> KeyframeEffectStack::applyKeyframeEffects(RenderStyle& targetStyle, HashSet<AnimatableCSSProperty>& affectedProperties, const RenderStyle* previousLastStyleChangeEventStyle, const Style::ResolutionContext& resolutionContext)
{
OptionSet<AnimationImpact> impact;

Expand Down Expand Up @@ -259,9 +259,9 @@ void KeyframeEffectStack::lastStyleChangeEventStyleDidChange(const RenderStyle*
effect->lastStyleChangeEventStyleDidChange(previousStyle, currentStyle);
}

void KeyframeEffectStack::cascadeDidOverrideProperties(const HashSet<AnimatableProperty>& overriddenProperties, const Document& document)
void KeyframeEffectStack::cascadeDidOverrideProperties(const HashSet<AnimatableCSSProperty>& overriddenProperties, const Document& document)
{
HashSet<AnimatableProperty> acceleratedPropertiesOverriddenByCascade;
HashSet<AnimatableCSSProperty> acceleratedPropertiesOverriddenByCascade;
for (auto animatedProperty : overriddenProperties) {
if (CSSPropertyAnimation::animationOfPropertyIsAccelerated(animatedProperty, document.settings()))
acceleratedPropertiesOverriddenByCascade.add(animatedProperty);
Expand Down
Loading

0 comments on commit 82e4075

Please sign in to comment.