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

Implement animationiteration event #26594

Merged
merged 1 commit into from May 21, 2020
Merged

Conversation

@mrobinson
Copy link
Member

mrobinson commented May 21, 2020

This event is triggered when an animation iterates. This change also
moves iteration out of style calculation to an "update animations" which
is the next part of having animation event handling match the HTML spec.

This change causes a few more tests to pass. Some of the other tests which
exercise this functionality require animationstart events.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #___ (GitHub issue number if applicable)
  • There are tests for these changes
@mrobinson mrobinson requested a review from jdm May 21, 2020
@highfive
Copy link

highfive commented May 21, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/document.rs, components/script/dom/webidls/EventHandler.webidl, components/script/dom/macros.rs, components/script/script_thread.rs, components/script/dom/window.rs and 1 more
  • @KiChjang: components/script/dom/document.rs, components/script/dom/webidls/EventHandler.webidl, components/script/dom/macros.rs, components/script/script_thread.rs, components/script/dom/window.rs and 1 more
  • @emilio: components/style/animation.rs
@highfive
Copy link

highfive commented May 21, 2020

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@jdm
jdm approved these changes May 21, 2020

for set in sets.values_mut() {
// When necessary, iterate our running animations to the next iteration.
// TODO(mrobinson): We need to send animationiteration events here.

This comment has been minimized.

Copy link
@jdm

jdm May 21, 2020

Member

This Todo can be removed, right?

This comment has been minimized.

Copy link
@mrobinson

mrobinson May 21, 2020

Author Member

Yep. I've updated the branch, removing this comment.

This event is triggered when an animation iterates. This change also
moves iteration out of style calculation to an "update animations" which
is the next part of having animation event handling match the HTML spec.
@mrobinson mrobinson force-pushed the mrobinson:animationiteration branch from 8e5f99f to 873cdd1 May 21, 2020
@jdm
Copy link
Member

jdm commented May 21, 2020

@bors-servo
Copy link
Contributor

bors-servo commented May 21, 2020

📌 Commit 873cdd1 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented May 21, 2020

Testing commit 873cdd1 with merge 70700c2...

@bors-servo
Copy link
Contributor

bors-servo commented May 21, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 70700c2 to master...

@bors-servo bors-servo merged commit 70700c2 into servo:master May 21, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@mrobinson mrobinson deleted the mrobinson:animationiteration branch May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.