This reverts commit 12f24969a8.
Revert "Bug 2036423: Don't force compositor animation update on timeline change. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit d0c4d6db66.
Animations can refer to the timeline to use, by name. The timeline resolution
can change due to style invalidation, e.g. An element mutating its
`scroll-timeline` property. Additionally, the referenced timeline may not even
exist at the time it is referenced. To respond to such changes correctly, we
need to keep track of what animations refer to named timelines.
Differential Revision: https://phabricator.services.mozilla.com/D296156
This reverts commit acc24781f3.
Revert "Bug 1774060: Invalidate named timelines on scroll|view-timeline and timeline-scope changes. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit c836eb9459.
Revert "Bug 1774060: Populate and return changed timeline names for invalidation. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit 86943f3b14.
Revert "Bug 1774060: Keep track of named timeline animations in `nsAnimationManager`. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit cfd345fe1d.
Animations can refer to the timeline to use, by name. The timeline resolution
can change due to style invalidation, e.g. An element mutating its
`scroll-timeline` property. Additionally, the referenced timeline may not even
exist at the time it is referenced. To respond to such changes correctly, we
need to keep track of what animations refer to named timelines.
Differential Revision: https://phabricator.services.mozilla.com/D296156
This reverts commit 668d470d4a.
Revert "Bug 1774060: Invalidate named timelines on scroll|view-timeline and timeline-scope changes. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit 2c5fdb9407.
Revert "Bug 1774060: Populate and return changed timeline names for invalidation. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit e3ca86799a.
Revert "Bug 1774060: Keep track of named timeline animations in `nsAnimationManager`. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit 1bd23d96d8.
Animations can refer to the timeline to use, by name. The timeline resolution
can change due to style invalidation, e.g. An element mutating its
`scroll-timeline` property. Additionally, the referenced timeline may not even
exist at the time it is referenced. To respond to such changes correctly, we
need to keep track of what animations refer to named timelines.
Differential Revision: https://phabricator.services.mozilla.com/D296156
We use the timeline duration to calculate the propery active duration
and end time in TimingParams. So now it's time to convert
`StyleAnimationRange{Start|End}` into the percentage value.
However, we still have to update start time of animation to align the
animation attachment range. We will do this in Bug 2020822. For now, no
test is passed because of the incorrect start time.
Differential Revision: https://phabricator.services.mozilla.com/D286168
When building the animation, we have to keep `animation-range` for this
animation, and we will use this to get the animation attachment range.
Differential Revision: https://phabricator.services.mozilla.com/D286167
This reverts commit 644a9ce730.
Revert "Bug 2014914 - Part 4: Normalize the timing if the timeline data is changed. r=layout-scroll-driven-animation-reviewers,layout-reviewers,dshin"
This reverts commit b41cc1b969.
Revert "Bug 2014914 - Part 3: Calculate the animation attachment range when updating the timing. r=firefox-style-system-reviewers,layout-scroll-driven-animation-reviewers,dshin"
This reverts commit 7dfe5e7abb.
Revert "Bug 2014914 - Part 2: Store the style of the animation range in Animation. r=firefox-style-system-reviewers,layout-scroll-driven-animation-reviewers,dshin"
This reverts commit 3f1c0188b5.
Revert "Bug 2014914 - Part 1: Cache the necessary layout info and calculate the timeline data lazily. r=layout-scroll-driven-animation-reviewers,layout-reviewers,dshin"
This reverts commit 3de9737bd5.
Revert "Bug 2016258: Move timeline-scope to the UI struct. r=firefox-style-system-reviewers,emilio"
This reverts commit eb6ede0c75.
Revert "Bug 2016258: Implement timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit 87b661808e.
Revert "Bug 1782995: Get rid of sibling traversal for named timeline. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit be1f75b1e9.
Revert "Bug 2018310: Add hashmap to keep track of all possible timeline targets of that name. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit bd0754e023.
Revert "Bug 2018310: Track timeline-scope on DOM side. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris,emilio"
This reverts commit afd2fa8cb8.
We use the timeline duration to calculate the propery active duration
and end time in TimingParams. So now it's time to convert
`StyleAnimationRange{Start|End}` into the percentage value.
However, we still have to update start time of animation to align the
animation attachment range. We will do this in Bug 2020822. For now, no
test is passed because of the incorrect start time.
Differential Revision: https://phabricator.services.mozilla.com/D286168
When building the animation, we have to keep `animation-range` for this
animation, and we will use this to get the animation attachment range.
Differential Revision: https://phabricator.services.mozilla.com/D286167
This reverts commit 103fd273bc.
Revert "Bug 2016245: Add parsing for timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit 8e5fa13d51.
Revert "Bug 2016245: Rename anchor-scope's backing type for general use. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,layout-reviewers,boris"
This reverts commit 7b7e701073.
This reverts commit 4caefb9c09.
Revert "Bug 2016245: Add parsing for timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit c6f5455dd1.
Revert "Bug 2016245: Rename anchor-scope's backing type for general use. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,layout-reviewers,boris"
This reverts commit 007f70e272.
This reverts commit bcf761a291.
Revert "Bug 2016245: Add parsing for timeline-scope. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,boris"
This reverts commit d42607ba35.
Revert "Bug 2016245: Rename anchor-scope's backing type for general use. r=layout-scroll-driven-animation-reviewers,firefox-style-system-reviewers,layout-reviewers,boris"
This reverts commit 228f755dd6.
And all its callers, e.g. AnimationCollection/TimelineCollection, and
nsAnimationManager/nsTransitionManager.
We will add the data field for view-transitions in Bug 1921116.
Differential Revision: https://phabricator.services.mozilla.com/D229565
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
Basically, we'd like to separate the originating element and its pseudo
element request in Animation code (for better compatibility with Web
Animations APIs and other pseudo types), and store the animations and
keyframe effects in the origninating element as well.
In this patch, we reuse `Element::GetPseudoElement()`, and update the
function signatures in EffectCompositor and RestyleManager.
All the following patches will replace more places with
`PseudoStyleRequest`.
Differential Revision: https://phabricator.services.mozilla.com/D228223
Also, in order to backwards-compatibility with Level 1, we have to
serialize auto as 0s for getComputedStyle in some cases, which depend on
the value of animation-timeline.
Differential Revision: https://phabricator.services.mozilla.com/D217871