From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- layout/style/nsTransitionManager.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'layout/style/nsTransitionManager.cpp') diff --git a/layout/style/nsTransitionManager.cpp b/layout/style/nsTransitionManager.cpp index ad3809c37f..66f1004354 100644 --- a/layout/style/nsTransitionManager.cpp +++ b/layout/style/nsTransitionManager.cpp @@ -116,6 +116,7 @@ bool nsTransitionManager::DoUpdateTransitions( continue; } + const auto behavior = aStyle.GetTransitionBehavior(i); ExpandTransitionProperty(aStyle.GetTransitionProperty(i), [&](const AnimatedPropertyID& aProperty) { // We might have something to transition. See if @@ -123,8 +124,9 @@ bool nsTransitionManager::DoUpdateTransitions( // are animatable. startedAny |= ConsiderInitiatingTransition( aProperty, aStyle, i, delay, duration, - aElement, aPseudoType, aElementTransitions, - aOldStyle, aNewStyle, propertiesChecked); + behavior, aElement, aPseudoType, + aElementTransitions, aOldStyle, aNewStyle, + propertiesChecked); }); } @@ -248,8 +250,8 @@ GetReplacedTransitionProperties(const CSSTransition* aTransition, bool nsTransitionManager::ConsiderInitiatingTransition( const AnimatedPropertyID& aProperty, const nsStyleUIReset& aStyle, uint32_t aTransitionIndex, float aDelay, float aDuration, - dom::Element* aElement, PseudoStyleType aPseudoType, - CSSTransitionCollection*& aElementTransitions, + mozilla::StyleTransitionBehavior aBehavior, dom::Element* aElement, + PseudoStyleType aPseudoType, CSSTransitionCollection*& aElementTransitions, const ComputedStyle& aOldStyle, const ComputedStyle& aNewStyle, AnimatedPropertyIDSet& aPropertiesChecked) { // IsShorthand itself will assert if aProperty is not a property. @@ -294,7 +296,7 @@ bool nsTransitionManager::ConsiderInitiatingTransition( AnimationValue startValue, endValue; const StyleShouldTransitionResult result = Servo_ComputedValues_ShouldTransition( - &aOldStyle, &aNewStyle, &property, + &aOldStyle, &aNewStyle, &property, aBehavior, oldTransition ? oldTransition->ToValue().mServo.get() : nullptr, &startValue.mServo, &endValue.mServo); -- cgit v1.2.3