mirror of
https://github.com/servo/servo.git
synced 2025-07-30 10:40:27 +01:00
Reduce duplicated code in from_thread_safe_layout_node.
This commit is contained in:
parent
19e5c2c88c
commit
18b49fd68e
1 changed files with 1 additions and 3 deletions
|
@ -143,9 +143,7 @@ impl OpaqueNodeMethods for OpaqueNode {
|
|||
|
||||
fn from_thread_safe_layout_node(node: &ThreadSafeLayoutNode) -> OpaqueNode {
|
||||
unsafe {
|
||||
let abstract_node = node.get_jsmanaged();
|
||||
let ptr: uintptr_t = abstract_node.get_jsobject() as uintptr_t;
|
||||
OpaqueNode(ptr)
|
||||
OpaqueNodeMethods::from_jsmanaged(node.get_jsmanaged())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue