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

Add support for animationend event #26362

Merged
merged 1 commit into from May 1, 2020

Conversation

@mrobinson
Copy link
Member

mrobinson commented Apr 30, 2020

This is triggered when an animation finishes. This is a high priority
because it allows us to start rooting nodes with animations in the
script thread.

This doesn't yet cause a lot of tests to pass because they rely on the
existence of Document.getAnimations() and the presence of
animationstart and animationiteration 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 OR
  • These changes do not require tests because ___
@highfive
Copy link

highfive commented Apr 30, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/animationevent.rs, components/script/dom/webidls/EventHandler.webidl, components/script/dom/macros.rs, components/script/dom/mod.rs, components/script/dom/webidls/AnimationEvent.webidl and 2 more
  • @KiChjang: components/script/dom/animationevent.rs, components/script/dom/webidls/EventHandler.webidl, components/script/dom/macros.rs, components/script/dom/mod.rs, components/script/dom/webidls/AnimationEvent.webidl and 3 more
  • @emilio: components/layout/animation.rs, components/layout/context.rs, components/style/animation.rs
@highfive
Copy link

highfive commented Apr 30, 2020

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@mrobinson mrobinson requested review from jdm and emilio Apr 30, 2020
@jdm
jdm approved these changes Apr 30, 2020
Copy link
Member

jdm left a comment

Looks great!

components/script/script_thread.rs Outdated Show resolved Hide resolved
@emilio
emilio approved these changes Apr 30, 2020
Copy link
Member

emilio left a comment

Looks sane, thanks.

@jdm
Copy link
Member

jdm commented Apr 30, 2020

@bors-servo r=jdm,emilio

@bors-servo
Copy link
Contributor

bors-servo commented Apr 30, 2020

📌 Commit 2deaa6c has been approved by jdm,emilio

@highfive highfive assigned jdm and unassigned ferjm Apr 30, 2020
@mrobinson mrobinson force-pushed the mrobinson:animation-animation-events branch from 2deaa6c to 152c0ed Apr 30, 2020
@mrobinson mrobinson force-pushed the mrobinson:animation-animation-events branch from 152c0ed to cb5321e May 1, 2020
@mrobinson
Copy link
Member Author

mrobinson commented May 1, 2020

@bors-servo r=jdm,emilio

@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

📌 Commit cb5321e has been approved by jdm,emilio

@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

Testing commit cb5321e with merge 79ec30a...

bors-servo added a commit that referenced this pull request May 1, 2020
…ilio

Add support for animationend event

This is triggered when an animation finishes. This is a high priority
because it allows us to start rooting nodes with animations in the
script thread.

This doesn't yet cause a lot of tests to pass because they rely on the
existence of `Document.getAnimations()` and the presence of
`animationstart` and `animationiteration` events.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

💔 Test failed - status-taskcluster

@mrobinson mrobinson force-pushed the mrobinson:animation-animation-events branch from cb5321e to 4388ef9 May 1, 2020
@highfive highfive removed the S-tests-failed label May 1, 2020
@mrobinson
Copy link
Member Author

mrobinson commented May 1, 2020

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

Trying commit 4388ef9 with merge 8b14c0c...

bors-servo added a commit that referenced this pull request May 1, 2020
Add support for animationend event

This is triggered when an animation finishes. This is a high priority
because it allows us to start rooting nodes with animations in the
script thread.

This doesn't yet cause a lot of tests to pass because they rely on the
existence of `Document.getAnimations()` and the presence of
`animationstart` and `animationiteration` events.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

💔 Test failed - status-taskcluster

This is triggered when an animation finishes. This is a high priority
because it allows us to start rooting nodes with animations in the
script thread.

This doesn't yet cause a lot of tests to pass because they rely on the
existence of `Document.getAnimations()` and the presence of
`animationstart` and animationiteration` events.
@mrobinson mrobinson force-pushed the mrobinson:animation-animation-events branch from 4388ef9 to 3903c1f May 1, 2020
@highfive highfive removed the S-tests-failed label May 1, 2020
@mrobinson
Copy link
Member Author

mrobinson commented May 1, 2020

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

Trying commit 3903c1f with merge 8f2fcf7...

bors-servo added a commit that referenced this pull request May 1, 2020
Add support for animationend event

This is triggered when an animation finishes. This is a high priority
because it allows us to start rooting nodes with animations in the
script thread.

This doesn't yet cause a lot of tests to pass because they rely on the
existence of `Document.getAnimations()` and the presence of
`animationstart` and `animationiteration` events.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

☀️ Test successful - status-taskcluster
State: approved= try=True

@mrobinson
Copy link
Member Author

mrobinson commented May 1, 2020

@bors-servo r=emilio,jdm

@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

📌 Commit 3903c1f has been approved by emilio,jdm

@highfive highfive assigned emilio and unassigned jdm May 1, 2020
@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

Testing commit 3903c1f with merge f063ae2...

@bors-servo
Copy link
Contributor

bors-servo commented May 1, 2020

☀️ Test successful - status-taskcluster
Approved by: emilio,jdm
Pushing f063ae2 to master...

@bors-servo bors-servo merged commit f063ae2 into servo:master May 1, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@mrobinson mrobinson deleted the mrobinson:animation-animation-events branch May 1, 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

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