servo/components/script
bors-servo 4c776f33d4
Auto merge of #23529 - gatoWololo:omar_split_mutation_observer, r=ferjm
Split getter for mutation_observers() into two methods.

Please let me know if these API changes look good:

registered_mutation_observers() returns immutable references and does
not init mutation observers.

registered_mutation_observers_mut() lazily initializes raredata if it
does not exist.

Updated code that uses this methods to call appropriate method when
mutation is not necessary.

<!-- 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
- [X] These changes fix #23286

<!-- Either: -->
- [X] These changes do not require tests because: this is a small change to the API, and existing tests for Partial ShadowDOM support cover this API use/changes.

<!-- 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/23529)
<!-- Reviewable:end -->
2019-06-10 10:08:40 -04:00
..
docs
dom Auto merge of #23529 - gatoWololo:omar_split_mutation_observer, r=ferjm 2019-06-10 10:08:40 -04:00
task_source
body.rs Pass InCompartment by value 2019-04-25 11:37:35 +02:00
build.rs Remove restrictions on cross-compiling on Windows. 2019-05-24 22:32:34 -04:00
Cargo.toml Upgrade parking_lot to 0.8. 2019-05-25 07:18:06 -04:00
clipboard_provider.rs
CMakeLists.txt Remove restrictions on cross-compiling on Windows. 2019-05-24 22:32:34 -04:00
compartments.rs Remove unused code from a bunch of crates 2019-06-03 04:18:12 +02:00
devtools.rs Update to SpiderMonkey 66. 2019-05-10 22:43:43 -04:00
document_loader.rs Remove unused code from script* crates 2019-06-02 07:12:26 +02:00
fetch.rs Add an inCompartments config for bindings 2019-05-24 23:02:38 +02:00
image_listener.rs
layout_image.rs Implementing the builder pattern for RequestInit 2019-04-10 14:01:30 -03:00
lib.rs Auto merge of #23253 - BartGitHub:refactor-promise-compartment, r=jdm 2019-04-29 13:59:04 -04:00
mem.rs
microtask.rs
network_listener.rs Create resource timing entry for sync network fetch 2019-05-08 17:33:39 +02:00
script_runtime.rs Update to SpiderMonkey 66. 2019-05-10 22:43:43 -04:00
script_thread.rs Implement WheelEvent Interface 2019-06-09 13:25:01 -04:00
serviceworker_manager.rs
serviceworkerjob.rs Update Worker webidl to support WorkerOptions 2019-05-11 12:14:25 +09:00
stylesheet_loader.rs Rename shadow_root_from_node to containing_shadow_root 2019-04-26 12:00:26 +02:00
stylesheet_set.rs Move StylesheetSetRef to script 2019-04-26 12:00:26 +02:00
task.rs
task_manager.rs
task_queue.rs
test.rs
textinput.rs PR #23272 review nits 2019-05-22 19:59:33 +02:00
timers.rs
unpremultiplytable.rs
webdriver_handlers.rs Auto merge of #23171 - hundredeir:find_elem_elems, r=jdm 2019-05-19 15:25:07 -04:00