aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/iterable.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-01 18:15:15 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:38 +0200
commitae6af5172b5f09e9ba19d0beca026fd0ac39f8c8 (patch)
treed60b33499b7caf460b78d53131bb0f147b6e5be0 /components/script/dom/bindings/iterable.rs
parent27f100b1d47058b92d0e23d8c1b2e472fb0eafca (diff)
downloadservo-ae6af5172b5f09e9ba19d0beca026fd0ac39f8c8.tar.gz
servo-ae6af5172b5f09e9ba19d0beca026fd0ac39f8c8.zip
Introduce Reflectable::global_scope
Diffstat (limited to 'components/script/dom/bindings/iterable.rs')
-rw-r--r--components/script/dom/bindings/iterable.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/bindings/iterable.rs b/components/script/dom/bindings/iterable.rs
index 5a86dcf64d8..8e316336607 100644
--- a/components/script/dom/bindings/iterable.rs
+++ b/components/script/dom/bindings/iterable.rs
@@ -93,8 +93,7 @@ impl<T: Reflectable + JSTraceable + Iterable> IterableIterator<T> {
iterable: JS::from_ref(iterable),
index: Cell::new(0),
};
- let global = iterable.global();
- reflect_dom_object(iterator, global.r().as_global_scope(), wrap)
+ reflect_dom_object(iterator, &*iterable.global_scope(), wrap)
}
/// Return the next value from the iterable object.