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

Cancel animations for nodes which are removed from the DOM #26953

Merged
merged 1 commit into from Jun 22, 2020

Conversation

@mrobinson
Copy link
Member

mrobinson commented Jun 17, 2020

This includes nodes which are being reparented.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • There are tests for these changes
@mrobinson mrobinson requested a review from nox Jun 17, 2020
@highfive
Copy link

highfive commented Jun 17, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/document.rs, components/script/dom/node.rs, components/script/animations.rs
  • @KiChjang: components/script/dom/document.rs, components/script/dom/node.rs, components/script/animations.rs
@highfive
Copy link

highfive commented Jun 17, 2020

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
self.owner_doc().cancel_animations_for_node(self);
unsafe {
self.style_and_layout_data
.borrow_for_script_deallocation()

This comment has been minimized.

Copy link
@jdm

jdm Jun 17, 2020

Member

This should be borrow_mut, right? Then there's no need for unsafe.

This comment has been minimized.

Copy link
@mrobinson

mrobinson Jun 17, 2020

Author Member

That's right. I've pushed a new version of the branch that uses borrow_mut() as well as fixing some test expectations.

This includes nodes which are being reparented.
@mrobinson mrobinson force-pushed the mrobinson:cancel-reparent branch from 43a538f to e901fa2 Jun 17, 2020
@nox
Copy link
Member

nox commented Jun 22, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jun 22, 2020

📌 Commit e901fa2 has been approved by nox

@bors-servo
Copy link
Contributor

bors-servo commented Jun 22, 2020

Testing commit e901fa2 with merge f35f671...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 22, 2020

☀️ Test successful - status-taskcluster
Approved by: nox
Pushing f35f671 to master...

@bors-servo bors-servo merged commit f35f671 into servo:master Jun 22, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@mrobinson mrobinson deleted the mrobinson:cancel-reparent branch Jun 22, 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

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