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

Dispose layout data for every node removed from the tree #6815

Merged
merged 1 commit into from Jul 29, 2015

Conversation

@nick-thompson
Copy link
Contributor

nick-thompson commented Jul 28, 2015

Fix for #6754.

cc @jdm – I believe this is all that's required for the fix, but until I get a better sense of #6813, I'm unsure of the best way to test this.

Review on Reviewable

@highfive
Copy link

highfive commented Jul 28, 2015

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @glennw (or someone else) soon.

@jdm
Copy link
Member

jdm commented Jul 28, 2015

Based way to ensure this is doing what we think right now is to add a println! to the dispose method that prints the pointer being disposed, and see what happens before and after this change when disconnecting a node with a child from the document.

@jdm
Copy link
Member

jdm commented Jul 28, 2015

-S-awaiting-review +S-needs-code-changes


Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


components/script/dom/node.rs, line 375 [r1] (raw file):
This is extraneous now, since traverse_preorder includes the root node.


Comments from the review on Reviewable.io

@jdm
Copy link
Member

jdm commented Jul 28, 2015

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


Comments from the review on Reviewable.io

@jdm jdm self-assigned this Jul 28, 2015
@nick-thompson nick-thompson force-pushed the nick-thompson:dispose_layout_data branch from 2760271 to 072609a Jul 28, 2015
@nick-thompson
Copy link
Contributor Author

nick-thompson commented Jul 28, 2015

Fixed the extraneous code, tested as you suggested and saw the expected results. My test approach is covered in this paste: http://pastebin.com/LqxLxbT3

Thanks!

@jdm
Copy link
Member

jdm commented Jul 28, 2015

@bors-servo: r+
-S-awaiting-review +S-awaiting-merge

Thanks for the patch!


Reviewed 1 of 1 files at r2.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@metajack
Copy link
Contributor

metajack commented Jul 29, 2015

@bors-servo r=jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jul 29, 2015

📌 Commit 072609a has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jul 29, 2015

Testing commit 072609a with merge 8b71200...

bors-servo pushed a commit that referenced this pull request Jul 29, 2015
Dispose layout data for every node removed from the tree

Fix for #6754.

cc @jdm – I believe this is all that's required for the fix, but until I get a better sense of #6813, I'm unsure of the best way to test this.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6815)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 29, 2015

☀️ Test successful - android, gonk, linux1, linux2, linux3, mac1, mac2, mac3

@bors-servo bors-servo merged commit 072609a into servo:master Jul 29, 2015
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@nick-thompson nick-thompson deleted the nick-thompson:dispose_layout_data branch Jul 29, 2015
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.