summaryrefslogtreecommitdiffstats
path: root/layout/style/nsTransitionManager.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /layout/style/nsTransitionManager.cpp
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--layout/style/nsTransitionManager.cpp12
1 files changed, 7 insertions, 5 deletions
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);