Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1822907] part 2: When handling a content-visibility change, don't insert already-completed animations into the timeline's sampling-order list. #39156

Merged
merged 1 commit into from Mar 23, 2023

Conversation

moz-wptsync-bot
Copy link
Collaborator

We have an invariant that the mAnimationOrder LinkedList is a subset of the
mAnimations hashset (omitting any animations that are hidden due to
content-visibility). This patch corrects one case where we were incorrectly
inserting an animation into the linked list when it wasn't present in the
hashset (because the animation had completed).

This patch also adds some documentation to mention this invariant, and some
assertions to enforce it in several places.

Differential Revision: https://phabricator.services.mozilla.com/D173333

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1822907
gecko-commit: 74d3d5d35e7767882de82d40ca7aa4f3d85b488a
gecko-reviewers: hiro

…dy-completed animations into the timeline's sampling-order list.

We have an invariant that the mAnimationOrder LinkedList is a subset of the
mAnimations hashset (omitting any animations that are hidden due to
content-visibility).  This patch corrects one case where we were incorrectly
inserting an animation into the linked list when it wasn't present in the
hashset (because the animation had completed).

This patch also adds some documentation to mention this invariant, and some
assertions to enforce it in several places.

Differential Revision: https://phabricator.services.mozilla.com/D173333

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1822907
gecko-commit: 74d3d5d35e7767882de82d40ca7aa4f3d85b488a
gecko-reviewers: hiro
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot moz-wptsync-bot merged commit 5dd0478 into master Mar 23, 2023
19 checks passed
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1822907 branch March 23, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants