mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Bug 1264125: Call the queueing events when canceling transition via Style or Script
Issue #55
This commit is contained in:
parent
ffa8225e06
commit
96037b8c9a
4 changed files with 53 additions and 7 deletions
|
|
@ -180,7 +180,7 @@ CSSTransition::UpdateTiming(SeekFlag aSeekFlag, SyncNotifyFlag aSyncNotifyFlag)
|
|||
}
|
||||
|
||||
void
|
||||
CSSTransition::QueueEvents()
|
||||
CSSTransition::QueueEvents(StickyTimeDuration aActiveTime)
|
||||
{
|
||||
if (!mEffect ||
|
||||
!mOwningElement.IsSet()) {
|
||||
|
|
@ -230,12 +230,9 @@ CSSTransition::QueueEvents()
|
|||
// Handle cancel events firts
|
||||
if (mPreviousTransitionPhase != TransitionPhase::Idle &&
|
||||
currentPhase == TransitionPhase::Idle) {
|
||||
// FIXME: bug 1264125: We will need to get active time when cancelling
|
||||
// the transition.
|
||||
StickyTimeDuration activeTime(0);
|
||||
TimeStamp activeTimeStamp = ElapsedTimeToTimeStamp(activeTime);
|
||||
TimeStamp activeTimeStamp = ElapsedTimeToTimeStamp(aActiveTime);
|
||||
events.AppendElement(TransitionEventParams{ eTransitionCancel,
|
||||
activeTime,
|
||||
aActiveTime,
|
||||
activeTimeStamp });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue