diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-10-25 11:11:23 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-11-11 14:19:30 +0100 |
commit | b290a3161d8ac85c7bcc3f9d7c0ae5a6fa379607 (patch) | |
tree | da710987c0be55080eb995b986d12c5a03a32049 /components/script/dom/node.rs | |
parent | aa105d89b4031d98376ac804e31e287f3bf21bb8 (diff) | |
download | servo-b290a3161d8ac85c7bcc3f9d7c0ae5a6fa379607.tar.gz servo-b290a3161d8ac85c7bcc3f9d7c0ae5a6fa379607.zip |
Clean up the conversion routines
Functions returning `Root<T>` are prefixed by "root_" and the ones returning
`*const T` by "native_".
Functions taking `*mut JSObject` are now suffixed by "_from_object" and the ones
taking `&T` by "_from_reflector".
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 3a8baa399d2..b1c58dcaeab 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -933,7 +933,7 @@ pub fn from_untrusted_node_address(_runtime: *mut JSRuntime, candidate: Untruste if object.is_null() { panic!("Attempted to create a `JS<Node>` from an invalid pointer!") } - let boxed_node: *const Node = conversions::native_from_reflector(object); + let boxed_node = conversions::private_from_object(object) as *const Node; Root::from_ref(&*boxed_node) } } |