diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-05-18 18:27:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 18:27:50 -0400 |
commit | fe1a057bd1dac069998c7f4fd23027bb0629025e (patch) | |
tree | b11a6594c15091f8d1c24278acfb5e0472fb47d0 /tests/wpt/web-platform-tests/css/css-animations/animationevent-interface.js | |
parent | 4ff3389c90fcfd93a2a66cf4467f2cffefaf100a (diff) | |
parent | 5bfa81903885712373e2747e138f2abaf4a83d95 (diff) | |
download | servo-fe1a057bd1dac069998c7f4fd23027bb0629025e.tar.gz servo-fe1a057bd1dac069998c7f4fd23027bb0629025e.zip |
Auto merge of #20740 - fabricedesre:mutation-observer-disconnect, r=jdm
Implement MutationObserver.disconnect()
<!-- Please describe your changes on the following line: -->
This implements https://dom.spec.whatwg.org/#dom-mutationobserver-disconnect
I added a `node_list` to the `MutationObserver` struct to keep track of the nodes involved in an observer because otherwise I could not find a way to unregister the observers on the node themselves without traversing the whole document tree. Let me know if there's something I missed.
---
<!-- 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. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20740)
<!-- Reviewable:end -->
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-animations/animationevent-interface.js')
0 files changed, 0 insertions, 0 deletions