aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-04-05 10:51:09 -0400
committerGitHub <noreply@github.com>2019-04-05 10:51:09 -0400
commite7b65c42c42bcf4c7e68822108cf5e0989bf72c6 (patch)
tree83132912b43f6a12a4445c886cd3d4cb1902fe43 /components/script/dom
parent5defd51ba7ffa76dda9c6ab3bca7104eb968df07 (diff)
parente88858388a250738153202666a90fae157d09ca0 (diff)
downloadservo-e7b65c42c42bcf4c7e68822108cf5e0989bf72c6.tar.gz
servo-e7b65c42c42bcf4c7e68822108cf5e0989bf72c6.zip
Auto merge of #23143 - CYBAI:remove-compound-microtasks, r=jdm
Remove compound microtasks We handled compound microtasks as microtasks so, basically, we only need to remove the naming of `compound`. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23140 - [x] These changes do not require tests because the updated spec is more about editorial. <!-- 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/23143) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/mutationobserver.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/mutationobserver.rs b/components/script/dom/mutationobserver.rs
index 4829be6a122..b25f99d0861 100644
--- a/components/script/dom/mutationobserver.rs
+++ b/components/script/dom/mutationobserver.rs
@@ -90,13 +90,13 @@ impl MutationObserver {
}
/// <https://dom.spec.whatwg.org/#queue-a-mutation-observer-compound-microtask>
- pub fn queue_mutation_observer_compound_microtask() {
+ pub fn queue_mutation_observer_microtask() {
// Step 1
- if ScriptThread::is_mutation_observer_compound_microtask_queued() {
+ if ScriptThread::is_mutation_observer_microtask_queued() {
return;
}
// Step 2
- ScriptThread::set_mutation_observer_compound_microtask_queued(true);
+ ScriptThread::set_mutation_observer_microtask_queued(true);
// Step 3
ScriptThread::enqueue_microtask(Microtask::NotifyMutationObservers);
}
@@ -104,7 +104,7 @@ impl MutationObserver {
/// <https://dom.spec.whatwg.org/#notify-mutation-observers>
pub fn notify_mutation_observers() {
// Step 1
- ScriptThread::set_mutation_observer_compound_microtask_queued(false);
+ ScriptThread::set_mutation_observer_microtask_queued(false);
// Step 2
let notify_list = ScriptThread::get_mutation_observers();
// TODO: steps 3-4 (slots)
@@ -239,7 +239,7 @@ impl MutationObserver {
}
// Step 5
- MutationObserver::queue_mutation_observer_compound_microtask();
+ MutationObserver::queue_mutation_observer_microtask();
}
}