diff options
Diffstat (limited to 'components/script_layout_interface/rpc.rs')
-rw-r--r-- | components/script_layout_interface/rpc.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script_layout_interface/rpc.rs b/components/script_layout_interface/rpc.rs index 7bc58dbf334..7b559078291 100644 --- a/components/script_layout_interface/rpc.rs +++ b/components/script_layout_interface/rpc.rs @@ -39,6 +39,8 @@ pub trait LayoutRPC { fn margin_style(&self) -> MarginStyleResponse; fn nodes_from_point(&self, page_point: Point2D<f32>, client_point: Point2D<f32>) -> Vec<UntrustedNodeAddress>; + + fn text_index(&self) -> TextIndexResponse; } pub struct ContentBoxResponse(pub Rect<Au>); @@ -92,3 +94,6 @@ impl MarginStyleResponse { } } } + +#[derive(Clone)] +pub struct TextIndexResponse(pub Option<usize>); |