aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 6a62e124b92..7746e637758 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1481,8 +1481,12 @@ impl Window {
self.layout_rpc.margin_style()
}
- pub fn text_index_query(&self, node: TrustedNodeAddress, mouse_x: i32, mouse_y: i32) -> TextIndexResponse {
- if !self.reflow(ReflowGoal::TextIndexQuery(node, mouse_x, mouse_y), ReflowReason::Query) {
+ pub fn text_index_query(
+ &self,
+ node: TrustedNodeAddress,
+ point_in_node: Point2D<f32>
+ ) -> TextIndexResponse {
+ if !self.reflow(ReflowGoal::TextIndexQuery(node, point_in_node), ReflowReason::Query) {
return TextIndexResponse(None);
}
self.layout_rpc.text_index()