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

Fix calculation of before change style for CSS transitions #23860

Merged
merged 1 commit into from Jun 29, 2020

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 29, 2020

This patch performs a lazy calculation of the before change style once
it has been determined that a transition is being retargeted. In doing
so, the current position is correctly updated to reflect changes made
via the web-animation API. The path also addresses a bug in the
calculation of current time, in the case of a paused or play-pending
animation.

Bug: 1082401, 888661, 547609

Change-Id: I4b76879d840b482da8ebf23c1aad41b881fafce8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2220263
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#783675}

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 Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2220263 branch 4 times, most recently from 07f8387 to 2baf0de Compare June 4, 2020 20:41
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2220263 branch 4 times, most recently from c891dc7 to a9d936e Compare June 16, 2020 16:00
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2220263 branch 7 times, most recently from d1e16e3 to 04939f3 Compare June 26, 2020 20:37
This patch performs a lazy calculation of the before change style once
it has been determined that a transition is being retargeted. In doing
so, the current position is correctly updated to reflect changes made
via the web-animation API.  The path also addresses a bug in the
calculation of current time, in the case of a paused or play-pending
animation.

Bug: 1082401, 888661, 547609

Change-Id: I4b76879d840b482da8ebf23c1aad41b881fafce8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2220263
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Commit-Queue: Kevin Ellis <kevers@chromium.org>
Cr-Commit-Position: refs/heads/master@{#783675}
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

2 participants