aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/documentorshadowroot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/documentorshadowroot.rs')
-rw-r--r--components/script/dom/documentorshadowroot.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/components/script/dom/documentorshadowroot.rs b/components/script/dom/documentorshadowroot.rs
index fec2b6372db..59e84acf13c 100644
--- a/components/script/dom/documentorshadowroot.rs
+++ b/components/script/dom/documentorshadowroot.rs
@@ -84,16 +84,15 @@ impl DocumentOrShadowRoot {
pub fn nodes_from_point(
&self,
client_point: &Point2D<f32>,
- reflow_goal: NodesFromPointQueryType,
+ query_type: NodesFromPointQueryType,
) -> Vec<UntrustedNodeAddress> {
- if !self
- .window
- .layout_reflow(QueryMsg::NodesFromPointQuery(*client_point, reflow_goal))
- {
+ if !self.window.layout_reflow(QueryMsg::NodesFromPointQuery) {
return vec![];
};
- self.window.layout_rpc().nodes_from_point_response()
+ self.window
+ .with_layout(|layout| layout.query_nodes_from_point(*client_point, query_type))
+ .unwrap_or_default()
}
#[allow(unsafe_code)]