diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs index 8de5cd81cef..d28fab9995a 100644 --- a/components/layout_thread_2020/lib.rs +++ b/components/layout_thread_2020/lib.rs @@ -1233,11 +1233,9 @@ impl LayoutThread { flags, ); - rw_data.nodes_from_point_response = results - .items - .iter() - .map(|item| UntrustedNodeAddress(item.tag.0 as *const c_void)) - .collect() + rw_data.nodes_from_point_response = + results.iter().map(|result| result.node).collect() + }, &QueryMsg::ElementInnerTextQuery(node) => { let node = unsafe { ServoLayoutNode::new(&node) };