-
-
Save jviereck/19c90f618db23db53bb8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn GetOffsetParent(self) -> Option<Temporary<Element>> { | |
let window = window_from_node(self).root().r(); | |
let page = window.page(); | |
let self_node: JSRef<Node> = NodeCast::from_ref(self); | |
match page.offset_parent_query(self_node.to_trusted_node_address()) { | |
Some(ref node_address) => { | |
let temp_node = from_untrusted_node_address( | |
window.get_cx().get_rt(), node_address); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment