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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user