Bug 1921553 - Use PseudoStyleRequest in AnimationCollection and TimelineCollection. r=view-transitions-reviewers,layout-reviewers,emilio

Just like what we do for EffectSet. Also, we will update
ElementAnimationData later, so for now only change the APIs of
AnimationCollection and TimelineCollection (and their callers).

Differential Revision: https://phabricator.services.mozilla.com/D228227
This commit is contained in:
Boris Chiou
2024-11-25 23:46:33 +00:00
parent dac5d98343
commit 2cacb75b9a
18 changed files with 125 additions and 115 deletions

View File

@@ -8065,12 +8065,9 @@ void ScrollContainerFrame::ScheduleScrollAnimations() {
return;
}
// TODO: We will tweak ProgressTimelineScheduler::Get() to handle
// PseudoStyleRequest better in the following patches.
const auto [element, request] =
AnimationUtils::GetElementPseudoPair(elementOrPseudo);
const auto* scheduler =
ProgressTimelineScheduler::Get(element, request.mType);
const auto* scheduler = ProgressTimelineScheduler::Get(element, request);
if (!scheduler) {
// We don't have scroll timelines associated with this frame.
return;