aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-06-28 17:09:33 +0200
committerMs2ger <ms2ger@gmail.com>2014-06-28 17:09:33 +0200
commit2b06bbdb2ff1d86505894ff3cb6239a0a681d08a (patch)
tree3063b6544fc9985927545b2618a9582bc405d0d4 /src/components/script/dom/bindings/js.rs
parent362feaa4a909ee2f000e23946a25e430bfd941f0 (diff)
downloadservo-2b06bbdb2ff1d86505894ff3cb6239a0a681d08a.tar.gz
servo-2b06bbdb2ff1d86505894ff3cb6239a0a681d08a.zip
Remove the pointer to the Rust object in Root.
It is already stored inside the jsref field.
Diffstat (limited to 'src/components/script/dom/bindings/js.rs')
-rw-r--r--src/components/script/dom/bindings/js.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/components/script/dom/bindings/js.rs b/src/components/script/dom/bindings/js.rs
index ae4fd2c1a67..b83115e289d 100644
--- a/src/components/script/dom/bindings/js.rs
+++ b/src/components/script/dom/bindings/js.rs
@@ -388,8 +388,6 @@ pub struct Root<'a, 'b, T> {
root_list: &'a RootCollection,
/// Reference to rooted value that must not outlive this container
jsref: JSRef<'b, T>,
- /// Pointer to underlying Rust data
- ptr: *T,
/// On-stack JS pointer to assuage conservative stack scanner
js_ptr: *mut JSObject,
}
@@ -405,7 +403,6 @@ impl<'a, 'b, T: Reflectable> Root<'a, 'b, T> {
ptr: unrooted.ptr.clone(),
chain: ContravariantLifetime,
},
- ptr: unrooted.ptr.clone(),
js_ptr: unrooted.reflector().get_jsobject(),
};
roots.root(&root);