mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Documentation and cleanup.
This commit is contained in:
parent
6351fc75fd
commit
c816975750
7 changed files with 67 additions and 29 deletions
|
@ -386,7 +386,7 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
|
|||
Some(root) => root,
|
||||
None => return None,
|
||||
};
|
||||
let root: JSRef<Node> = NodeCast::from_ref(root);
|
||||
let root = NodeCast::from_ref(root);
|
||||
let win = self.window.root();
|
||||
let address = match win.r().layout().hit_test(root.to_trusted_node_address(), *point) {
|
||||
Ok(HitTestResponse(node_address)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue